Murl Engine Lua Addon API  Version 1.0 beta
Murl.IGameControllerMapping.ButtonMapping

The button mapping.

Describes how to map the button raw data to a game controller button.


Table members

Functions


Murl.IGameControllerMapping.ButtonMapping.new()

The default constructor.

Murl.IGameControllerMapping.ButtonMapping new()

Returns
Murl.IGameControllerMapping.ButtonMapping

Murl.IGameControllerMapping.ButtonMapping.new(buttonIndex, destinationButton)

Constructor taking initialization values.

Murl.IGameControllerMapping.ButtonMapping new(Integer buttonIndex, Murl.IEnums.GameControllerButton destinationButton)

Parameters
buttonIndexThe button index to read the raw button value from.
destinationButtonThe destination button to post the button state.
Returns
Murl.IGameControllerMapping.ButtonMapping


Metamethods


The equal to operator.

The "equal to" comparison operator.

Returns
Boolean = Murl.IGameControllerMapping.ButtonMapping == Murl.IGameControllerMapping.ButtonMapping


Instance Members


mButtonIndex

The button index to read the raw button value from.

Returns
Integer

mDestinationButton

The destination button to post the button state.

Returns
Murl.IEnums.GameControllerButton