Class: SDL2::Event::Keyboard
- Inherits:
-
SDL2::Event
- Object
- SDL2::Event
- SDL2::Event::Keyboard
- Defined in:
- ext/sdl2_ext/event.c,
lib/sdl2/event.rb,
ext/sdl2_ext/event.c
Overview
Instance Attribute Summary collapse
-
#mod ⇒ Integer
current key modifier.
-
#pressed ⇒ Integer
(also: #pressed?)
key is pressed.
-
#repeat ⇒ Integer
(also: #repeat?)
key repeat.
-
#scancode ⇒ Integer
physical key code.
-
#sym ⇒ Integer
virtual key code.
-
#window_id ⇒ Integer
the associate window id.
Attributes inherited from SDL2::Event
Instance Method Summary collapse
-
#inspect ⇒ String
Inspection string.
Methods inherited from SDL2::Event
enable=, enabled?, poll, #window
Instance Attribute Details
#mod ⇒ Integer
current key modifier
#pressed ⇒ Integer Also known as: pressed?
key is pressed
#repeat ⇒ Integer Also known as: repeat?
key repeat
#scancode ⇒ Integer
physical key code
#sym ⇒ Integer
virtual key code
#window_id ⇒ Integer
the associate window id
Instance Method Details
#inspect ⇒ String
Returns inspection string.
359 360 361 362 363 364 365 366 |
# File 'ext/sdl2_ext/event.c', line 359 def inspect "<#{self.class.inspect}: " \ "timestamp=#{.inspect} " \ "window_id=#{window_id.inspect} " \ "repeat=#{repeat.inspect} " \ "scancode=#{SDL2::Key::Scan.name_of(scancode).inspect} " \ "sym=#{SDL2::Key.name_of(sym).inspect}>" end |