enum Opal::Input::Core::DeviceType

Overview

Supported physical input device categories across Opal TUIs, Godot 4.8 (Lapis), and PS2 (Citrine).

Defined in:

opal/input/core/remap_model.cr

Enum Members

Keyboard = 0
Mouse = 1
Gamepad = 2

Constructors

Instance Method Summary

Constructor Detail

def self.parse_device(value : DeviceType | Symbol | String) : DeviceType #

[View source]

Instance Method Detail

def gamepad? #

Returns true if this enum value equals Gamepad


[View source]
def icon : String #

[View source]
def keyboard? #

Returns true if this enum value equals Keyboard


[View source]
def label : String #

[View source]
def mouse? #

Returns true if this enum value equals Mouse


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Enum

Appends a String representation of this enum member to the given io.

See also: #to_s.


[View source]