class Gosuplus::StateInputHandler
Public Class Methods
new()
click to toggle source
# File lib/Gosuplus/stateinputhandler.rb, line 3 def initialize @button_state = {} end
Public Instance Methods
get_state(key)
click to toggle source
# File lib/Gosuplus/stateinputhandler.rb, line 11 def get_state(key) @button_state[key] end
set_state(key, state)
click to toggle source
# File lib/Gosuplus/stateinputhandler.rb, line 7 def set_state(key, state) @button_state[key] = state end