BitLegit
Just a couple of kids tryin' to make it on their own.
Classic Controller
Classic functions
bool GetClassicButton(int remote, string s)
int remote : the number of the remote(0-15)
string s : the type of button you wish to check
- Returns true if the button is depressed in the current frame.
- Acceptable button types:
"A" "B" "MINUS" "PLUS" "HOME" "X" "Y" "UP" "DOWN" "LEFT" "RIGHT" "L" "R" "ZL" "ZR"
bool GetClassicButtonDown(int remote, string s)
int remote : the number of the remote(0-15)
string s : the type of button you wish to check
- Returns true if the button is depressed in the current frame but was not in the previous frame.
- Acceptable button types:
"A" "B" "MINUS" "PLUS" "HOME" "X" "Y" "UP" "DOWN" "LEFT" "RIGHT" "L" "R" "ZL" "ZR"
bool GetClassicButtonUp(int remote, string s)
int remote : the number of the remote(0-15)
string s : the type of button you wish to check
- Returns true if the button is not depressed in the current frame but was in the previous frame.
- Acceptable button types:
"A" "B" "MINUS" "PLUS" "HOME" "X" "Y" "UP" "DOWN" "LEFT" "RIGHT" "L" "R" "ZL" "ZR"
Vector2 GetClassicAnalogStick(int remote, string s)
int remote : the number of the remote(0-15)
string s : the type of analog stick you wish to check
- Returns a Vector2 representing the x and y values of the specified analog stick. Values range
from -1 to 1 with 0 representing the neutral position.
- Acceptable types of analog stick:
"LEFT" "RIGHT"
float GetAnalogButton(int remote, string s)
int remote : the number of the remote(0-15)
string s : the type of analog button you wish you check.
- Acceptable button types:
"CLASSICL" "CLASSICR"