Module | Rubygame::Events::KeyboardEvent |
In: |
lib/rubygame/events/keyboard_events.rb
lib/rubygame/events/keyboard_events.rb |
KeyboardEvent is a mixin module included in the KeyPressed and KeyReleased classes. It defines the key and modifiers accessors.
key | [R] | |
key | [R] | |
modifiers | [R] | |
modifiers | [R] |
Initialize the KeyboardEvent.
key: | a key symbol for the key that was pressed or released. (Symbol, required) |
modifiers: | an Array of key symbols for the modifier keys that were active when the event occured. (Array, optional) |
Initialize the KeyboardEvent.
key: | a key symbol for the key that was pressed or released. (Symbol, required) |
modifiers: | an Array of key symbols for the modifier keys that were active when the event occured. (Array, optional) |