struct Scar::Event::KeyPressed
- Scar::Event::KeyPressed
- Scar::Event::Event
- Struct
- Value
- Object
Overview
A key was pressed
Defined in:
scar/event.crConstructors
Instance Method Summary
- #alt : Bool
-
#code : SF::Keyboard::Key
The keycode of the pressed key
- #control : Bool
- #shift : Bool
- #system : Bool
Instance methods inherited from struct Scar::Event::Event
initialize
initialize
Constructor methods inherited from struct Scar::Event::Event
new
new
Constructor Detail
def self.new(code : SF::Keyboard::Key, alt : Bool, control : Bool, shift : Bool, system : Bool)
#