Skip to main content
Version: 12 Dec 2024

MLInputControllerCallbacksEx

A structure containing callbacks for input controller events. The final parameter to all the callbacks is a void *, which will point to whatever payload data the user provides in MLInputSetControllerCallbacksEx. Individual callbacks which are not required by the client can be NULL. This structure must be initialized by calling MLInputControllerCallbacksExInit() before use.

Public Methods​

MLInputControllerCallbacksEx Create​

Create and return an initialized version of this struct.

public static MLInputControllerCallbacksEx Create()

Public Attributes​

OnButtonClick​

This callback will be invoked whenever a controller button is pressed and released within a short duration.


public OnButtonClickDelegate OnButtonClick;


OnButtonDown​

This callback will be invoked whenever a controller button is pressed. This callback will be called only for discrete gestures.


public OnButtonDownDelegate OnButtonDown;


OnButtonUp​

This callback will be invoked whenever a controller button is released.


public OnButtonUpDelegate OnButtonUp;


OnConnect​

This callback will be invoked whenever a controller is connected.


public OnConnectDelegate OnConnect;


OnDisconnect​

This callback will be invoked whenever a controller is disconnected.


public OnDisconnectDelegate OnDisconnect;


OnTouchpadGesture​

This callback will be invoked whenever a touch gesture is detected. This callback will be called for both discrete and continuous gestures.


public OnTouchpadGestureDelegate OnTouchpadGesture;


OnTouchpadGestureContinue​

This callback will be invoked whenever a continuation of a touch gesture is detected. This callback will be called only for continuous gestures.


public OnTouchpadGestureContinueDelegate OnTouchpadGestureContinue;


OnTouchpadGestureEnd​

This callback will be invoked whenever a continuous touch gesture ends. This callback will be called only for continuous gestures.


public OnTouchpadGestureEndDelegate OnTouchpadGestureEnd;


OnTrigger​

This callback will be invoked whenever a controller trigger state is changed.


public OnTriggerDelegate OnTrigger;


Version​

Version of this structure.


public uint Version;