module Nya::Input

Overview

Input helper methods

Defined in:

nya/input/events.cr
nya/input/input.cr

Class Method Summary

Class Method Detail

def self.key?(kcode : Keycode) #

Returns true if given key is pressed


[View source]
def self.key?(kcode) #

ditto


[View source]
def self.mouse?(button : UInt8) #

Returns true if the given mouse button is pressed


[View source]
def self.mouse?(b) #

ditto


[View source]