abstract struct SF::Event::KeyEvent
- SF::Event::KeyEvent
- SF::Event
- Struct
- Value
- Object
Overview
Keyboard event parameters (see KeyPressed
, KeyReleased
)
Direct Known Subclasses
Defined in:
window/obj.crConstructors
Instance Method Summary
-
#alt : Bool
Is the Alt key pressed?
- #alt=(alt : Bool)
-
#code : Keyboard::Key
Code of the key that has been pressed
- #code=(code : Keyboard::Key)
-
#control : Bool
Is the Control key pressed?
- #control=(control : Bool)
-
#dup : KeyEvent
Returns a shallow copy of this object.
-
#shift : Bool
Is the Shift key pressed?
- #shift=(shift : Bool)
-
#system : Bool
Is the System key pressed?
- #system=(system : Bool)
Instance methods inherited from struct SF::Event
initialize
initialize
Constructor methods inherited from struct SF::Event
new
new
Constructor Detail
Instance Method Detail
Description copied from struct Value
Returns a shallow copy of this object.
Because Value
is a value type, this method returns self
,
which already involves a shallow copy of this object because
value types are passed by value.