struct

SF::Event::KeyEvent

Inherits SF::Event / Struct / Value / Object

Keyboard event parameters (see KeyPressed, KeyReleased)

Constructors

Instance methods

alt

Is the Alt key pressed?

Source
alt=(alt : Bool)
Source
code

Code of the key that has been pressed

Source
code=(code : Keyboard::Key)
Source
control

Is the Control key pressed?

Source
control=(control : Bool)
Source
dup

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.

Source
shift

Is the Shift key pressed?

Source
shift=(shift : Bool)
Source
system

Is the System key pressed?

Source
system=(system : Bool)
Source