enum Opal::Input::Core::GamepadStyle

Overview

Controller button glyph convention for localized/platform-authentic UI prompts.

Defined in:

opal/input/core/remap_model.cr

Enum Members

DualShock = 0
Xbox = 1
Generic = 2

Constructors

Instance Method Summary

Constructor Detail

def self.parse_style(value : GamepadStyle | Symbol | String) : GamepadStyle #

[View source]

Instance Method Detail

def dual_shock? #

Returns true if this enum value equals DualShock


[View source]
def generic? #

Returns true if this enum value equals Generic


[View source]
def xbox? #

Returns true if this enum value equals Xbox


[View source]