Class: Input::RepeatKeyHandler
Overview
Class responsive of emulating the repeat? behavior of the RGSS Input module.
Note: for frame agnostic consideration this class holds the down value to true until read this is to ensure that scenes running at 60FPS instead of 240FPS do not miss the repeat? input
Instance Method Summary collapse
-
#down ⇒ Boolean
Tell if the key is down (and consume the down state).
-
#initialize(key_id) ⇒ RepeatKeyHandler
constructor
A new instance of RepeatKeyHandler.
-
#update
Update the state of the key handler.
Constructor Details
#initialize(key_id) ⇒ RepeatKeyHandler
Returns a new instance of RepeatKeyHandler.
1103 1104 |
# File 'docs/0_Dependencies.rb', line 1103 def initialize(key_id) end |
Instance Method Details
#down ⇒ Boolean
Tell if the key is down (and consume the down state)
1110 1111 |
# File 'docs/0_Dependencies.rb', line 1110 def down end |
#update
Update the state of the key handler
1106 1107 |
# File 'docs/0_Dependencies.rb', line 1106 def update end |