SetLeft
SetLeft

Changes the player's left input

bSuccess = myPlayer.SetLeft( New_Key )
bSuccess = myPlayer.SetLeft( New_Value )

Return value
TRUE if the control was changed successfully, otherwise FALSE.

Parameters
  • New_Key
    The new key to use as the input. Only for MODE_KEYBOARD
  • New_Value
    The new tollerence. 0.0 - 1.0 for MODE_JOYSTICK or a pixel value for MODE_MOUSE
Comments

Keyboard inputs can be changed by the user at runtime. Joystick and mouse inputs cannot currently be changed in this way.

See also
Player:GetLeft
Player:SetRight
Player:SetUp
Player:SetDown
Player:SetFire
Player:SetJump



JAM © 2005 no one in partiular
Project started by David Evans in 2005