game control functions
Keys/KeyBoard Press Functions Key Input Version Compatibility: keyJustPressed(name:String) Gets the control keys that were recently pressed on the current game. name - The name of the key to be used. keyPressed(name:String) Gets the control keys were currently pressed on the current game. name - The name of the key to be used. keyReleased(name:String) Gets the control keys were recently released on the current game. name - The name of the key to be used. keyboardJustPressed(name:String) Gets the keyboard keys that were recently pressed on the current game. name - The name of the keys on the keyboard. keyboardPressed(name:String) Gets the keyboard keys that were currently pressed on the current game. name - The name of the keys on the keyboard. keyboardReleased(name:String) Gets the keyboard keys that were recently released on the current game. name - The name of the keys on the keyboard. Mouse functions Buttons: left, right, middle mouseClicked(name:String) Gets the mouse buttons that were recently pressed on the current frame. name The name of the mouse buttons; Defualt value: left. mousePressed(name:String) Gets the mouse buttons that were currently pressed on the current frame. name The name of the mouse buttons; Defualt value: left. mouseReleased(name:String) Gets the mouse buttons that were recently released on the current frame. name The name of the mouse buttons; Defualt value: left. getMouseX(camera:String) Returns the current x value of the mouse on the specific camera. camera - The current camera state, can be either camGame, camHUD or camOther. getMouseY(camera:String) Returns the current y value of the mouse on the specific camera. camera - The current camera state, can be either camGame, camHUD or camOther. Gamepad Functions Warning: Take this section of this page with a grain of salt because I'm not sure if this is how you use this function. And its barley use in scripts, so please help me. Click here to see the list of ID controls gamepadJustPressed(id:Int, name:String) Gets the gamepad buttons that were recently pressed on the current frame. id - The ID controls of the gamepad. name - The name of the gamepad controls. gamepadPressed(id:Int, name:String) Gets the gamepad buttons that were currently pressed on the current frame. id - The ID controls of the gamepad. name - The name of the gamepad controls. gamepadReleased(id:Int, name:String) Gets the gamepad buttons that were recently released on the current frame. id - The ID controls of the gamepad. name - The name of the gamepad controls. anyGamepadJustPressed(name:String) Gets any gamepad buttons that were recently pressed on the current frame. name - The name of the controls of any gamepad. anyGamepadPressed(name:String) Gets any gamepad buttons that were currently pressed on the current frame. name - The name of the controls of any gamepad. anyGamepadReleased(name:String) Gets any gamepad buttons that were recently released on the current frame. name - The name of the controls of any gamepad. gamepadAnalogX(id:Int, ?leftStick:Bool = true) The x axis value of the gamepad analog. id - The ID controls of the gamepad. leftStick - Whether if its the left or right analog stick; Defualt value: true. gamepadAnalogY(id:Int, ?leftStick:Bool = true) The y axis value of the gamepad analog. id - The ID controls of the gamepad. leftStick - Whether if its the left or right analog stick; Defualt value: true.