struct Scar::Event::KeyPressed

Overview

A key was pressed

Defined in:

scar/event.cr

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def alt : Bool #

[View source]
def code : SF::Keyboard::Key #

The keycode of the pressed key


[View source]
def control : Bool #

[View source]
def shift : Bool #

[View source]
def system : Bool #

[View source]