BindingCode

Stores an easy to lookup code for input bindings in integer format. Keybindings should be stored in the configuration file as a human-readable format, as this struct might change in the future if more things need to be added

Constructors

this
this(uint base)

Standard CTOR

this
this(ushort _buttonNum, ubyte _modifierFlags, ubyte _deviceTypeID, ubyte _deviceNum, ubyte _keymodIgnore)

CTOR with individual values

Members

Functions

opCmp
int opCmp(BindingCode other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(BindingCode other)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

buttonNum
ushort buttonNum [@property getter]

Returns the button number portion of the code.

buttonNum
ushort buttonNum [@property setter]

Sets the button number portion of the code.

deviceNum
ubyte deviceNum [@property getter]

Returns the device type ID portion of the code.

deviceNum
ubyte deviceNum [@property setter]

Sets the device type ID portion of the code.

deviceTypeID
ubyte deviceTypeID [@property getter]

Returns the device type ID portion of the code.

deviceTypeID
ubyte deviceTypeID [@property setter]

Sets the device type ID portion of the code.

extArea
ubyte extArea [@property getter]

Returns the extended area value.

extArea
ubyte extArea [@property setter]

Sets the extended area value.

isJoyAxis
bool isJoyAxis [@property getter]

Returns the keymod ignore flags Return whether the binding code is a joy axis

keymodIgnore
ubyte keymodIgnore [@property getter]

Returns the keymod ignore code.

keymodIgnore
ubyte keymodIgnore [@property setter]

Sets the keymod ignore code.

modifierFlags
ubyte modifierFlags [@property getter]

Returns the modifier flag portion of the code.

modifierFlags
ubyte modifierFlags [@property setter]

Sets the modifier flag portion of the code.

Variables

base
uint base;

The basis for all comparison. bits 0-8: Button/axis number. bits 9-16: Modifier flags. bits 17-19: Device type ID. bits 20-23: Device number. bits 24-31: Extended area.

flags
uint flags;

Modifier flags. bits 0-8: Unused. bits 9-16: Keymod ignore. bits 17-31: Unused.

Meta