Difference between revisions of "PlugIn Development:GameEx Input Joystick Function"

From Spesoft/GameEx Wiki
Jump to navigation Jump to search
Line 4: Line 4:
The <span style="color:red;">'''Buttons'''</span> parameter is passed as the user presses a joystick key.  
The <span style="color:red;">'''Buttons'''</span> parameter is passed as the user presses a joystick key.  


<span style="color:darkred;">''NOTE: This function only fires when the GameEx UI is visible.''</span>
<span style="color:darkred;"><b>PLEASE NOTE:</b> ''This function only fires when the GameEx UI is visible.''</span>


==Code Examples==
==Code Examples==

Revision as of 22:24, 26 April 2014

GameEx: Input Joystick Function Overview

This function is called when you press a button on the joystick. You can return TRUE to continue processing the event or return FALSE and GameEx will not initialize the event. The Buttons parameter is passed as the user presses a joystick key.

PLEASE NOTE: This function only fires when the GameEx UI is visible.

Code Examples

VB.NET syntax:

Public Function Input_Joystick(ByVal Buttons() As Boolean) As Boolean
     Return True
End Function

C# syntax:

public bool Input_Joystick(bool[] Buttons)
{
     return true;
}