lib/lotu/systems/input_system.rb in lotu-0.1.14 vs lib/lotu/systems/input_system.rb in lotu-0.1.15

- old
+ new

@@ -1,10 +1,11 @@ module Lotu - class InputSystem + class InputSystem < System def initialize(user, opts={}) - user.extend UserMethods + super + @user.extend UserMethods # Current ongoing actions (button is being pushed) @actions = [] @unique_actions = [] # Last time an action was executed (so we can implement some @@ -53,11 +54,9 @@ @reverse_register[key].each do |client, action| action_name, rate = action @actions.delete [client, action_name, rate] end end - - def draw;end module UserMethods def set_keys(keys) systems[InputSystem].set_keys(self, keys) end