mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Storm Sync
This commit is contained in:
@@ -83,18 +83,13 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def self.action(key)
|
||||
answer = nil
|
||||
@@keymap.detect do |action, value|
|
||||
@@keymap.select do |action, value|
|
||||
if value.is_a?(Array)
|
||||
answer = action if value.include?(key)
|
||||
action if value.include?(key)
|
||||
else
|
||||
if value == key
|
||||
answer = action
|
||||
end
|
||||
action if value == key
|
||||
end
|
||||
end
|
||||
|
||||
answer
|
||||
end.map { |keymap| keymap.first.is_a?(Symbol) ? keymap.first : keymap.first.first }
|
||||
end
|
||||
|
||||
def self.reset_keys
|
||||
|
||||
Reference in New Issue
Block a user