Sha256: e0778fd16075a699f87529c49f837871873142df4a48924dc7536ba2102f34e2
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
chord_data = { keyboard = { % keyboard.each do |chord| { chord = { mods = { num = <%= chord.mods[:num] %>, alt = <%= chord.mods[:alt] %>, shift = <%= chord.mods[:shift] %>, ctrl = <%= chord.mods[:ctrl] %> }; rows = { <% chord.rows.each do |row| %> <%if row == :open %>"O"; <%end%> <%if row == :left %>"L"; <%end%> <%if row == :right %>"R"; <%end%> <%if row == :middle %>"M"; <%end%> % end } }, data = <%= chord.render_action.inspect %> }; % end }; mouse = { % mouse.each do |chord| { chord = { mods = { num = <%= chord.mods[:num] %>, alt = <%= chord.mods[:alt] %>, shift = <%= chord.mods[:shift] %>, ctrl = <%= chord.mods[:ctrl] %> }; rows = { <% chord.rows.each do |row| %> <%if row == :open %>"O"; <%end%> <%if row == :left %>"L"; <%end%> <%if row == :right %>"R"; <%end%> <%if row == :middle %>"M"; <%end%> % end } }, action = { buttons = { <% if chord.buttons[:left] %>Left; <% end %> <%if chord.buttons[:middle]%>Middle; <%end%> <%if chord.buttons[:right]%>Right; <%end%> }; modifiers = { <%if chord.mods[:ctrl]%>Ctrl; <% end %> <%if chord.mods[:alt]%>Alt; <% end %> <%if chord.mods[:shift]%>Shift; <% end %> <%if chord.mods[:toggle]%>Tgl; <% end %> <%if chord.mods[:double]%>Dbl; <% end %> } } }; % end }; config = { raw = <%= configs[:raw].inspect %> } } return chord_data
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twiddler-utils-0.0.3 | templates/lua.erb |