Difference between revisions of "PlugIn Development:GameEx Input Joystick Function"
Jump to navigation
Jump to search
(→VB.NET) |
(→C#) |
||
Line 27: | Line 27: | ||
=== <span class="plugin_text_fx">C#</span> === | === <span class="plugin_text_fx">C#</span> === | ||
<pre class="code_block_func"> | <pre class="code_block_func"> | ||
public bool Input_Joystick(bool[] Buttons) | public bool Input_Joystick(bool[] Buttons) |
Revision as of 00:33, 28 April 2014
This function is called when you press a button on the joystick.
PLEASE NOTE: This function only fires when the GameEx UI is visible.
Parameters
Buttons() [boolean]: An array of buttons that denote the state of the buttons on the joystick.
Parameter Values
For each item in the array, a parameter of true means that the position button is currently pressed in that instance of the array.
So, if Array[0] = true then Joystick Button 0 is pressed, and so on.
Returns
This function returns a boolean value.
Return Values
Return true and GameEx will process the joystick button press.
Return false and GameEx will not process the joystick button press.
Code Examples
VB.NET
Public Function Input_Joystick(ByVal Buttons() As Boolean) As Boolean Return True End Function
C#
public bool Input_Joystick(bool[] Buttons) { return true; }