PlayerInput

Barotrauma.PlayerInput

Functions

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetHashCode()

GetHashCode

Returns

  • number

GetType()

GetType

Returns

  • Type

PlayerInput()

PlayerInput

PlayerInput.DoubleClicked()

DoubleClicked

Returns

  • bool

PlayerInput.InventoryKeyHit(index)

InventoryKeyHit

Parameters

  • index number

Returns

  • bool

PlayerInput.IsAltDown()

IsAltDown

Returns

  • bool

PlayerInput.IsCtrlDown()

IsCtrlDown

Returns

  • bool

PlayerInput.IsShiftDown()

IsShiftDown

Returns

  • bool

PlayerInput.KeyDown(inputType)

KeyDown

Parameters

  • inputType InputType

Returns

  • bool

PlayerInput.KeyDown(button)

KeyDown

Parameters

  • button Microsoft.Xna.Framework.Input.Keys

Returns

  • bool

PlayerInput.KeyHit(inputType)

KeyHit

Parameters

  • inputType InputType

Returns

  • bool

PlayerInput.KeyHit(button)

KeyHit

Parameters

  • button Microsoft.Xna.Framework.Input.Keys

Returns

  • bool

PlayerInput.KeyUp(button)

KeyUp

Parameters

  • button Microsoft.Xna.Framework.Input.Keys

Returns

  • bool

PlayerInput.KeyUp(inputType)

KeyUp

Parameters

  • inputType InputType

Returns

  • bool

PlayerInput.MidButtonClicked()

MidButtonClicked

Returns

  • bool

PlayerInput.MidButtonHeld()

MidButtonHeld

Returns

  • bool

PlayerInput.Mouse4ButtonClicked()

Mouse4ButtonClicked

Returns

  • bool

PlayerInput.Mouse4ButtonHeld()

Mouse4ButtonHeld

Returns

  • bool

PlayerInput.Mouse5ButtonClicked()

Mouse5ButtonClicked

Returns

  • bool

PlayerInput.Mouse5ButtonHeld()

Mouse5ButtonHeld

Returns

  • bool

PlayerInput.MouseButtonsSwapped()

MouseButtonsSwapped

Returns

  • bool

PlayerInput.MouseWheelDownClicked()

MouseWheelDownClicked

Returns

  • bool

PlayerInput.MouseWheelUpClicked()

MouseWheelUpClicked

Returns

  • bool

PlayerInput.PrimaryMouseButtonClicked()

PrimaryMouseButtonClicked

Returns

  • bool

PlayerInput.PrimaryMouseButtonDown()

PrimaryMouseButtonDown

Returns

  • bool

PlayerInput.PrimaryMouseButtonHeld()

PrimaryMouseButtonHeld

Returns

  • bool

PlayerInput.PrimaryMouseButtonReleased()

PrimaryMouseButtonReleased

Returns

  • bool

PlayerInput.SecondaryDoubleClicked()

SecondaryDoubleClicked

Returns

  • bool

PlayerInput.SecondaryMouseButtonClicked()

SecondaryMouseButtonClicked

Returns

  • bool

PlayerInput.SecondaryMouseButtonDown()

SecondaryMouseButtonDown

Returns

  • bool

PlayerInput.SecondaryMouseButtonHeld()

SecondaryMouseButtonHeld

Returns

  • bool

PlayerInput.SecondaryMouseButtonReleased()

SecondaryMouseButtonReleased

Returns

  • bool

PlayerInput.Update(deltaTime)

Update

Parameters

  • deltaTime number

PlayerInput.UpdateVariable()

UpdateVariable

ToString()

ToString

Returns

Fields

PlayerInput.GetKeyboardState

PlayerInput.GetKeyboardState, field of type Microsoft.Xna.Framework.Input.KeyboardState

PlayerInput.GetOldKeyboardState

PlayerInput.GetOldKeyboardState, field of type Microsoft.Xna.Framework.Input.KeyboardState

PlayerInput.LatestMousePosition

PlayerInput.LatestMousePosition, field of type Microsoft.Xna.Framework.Vector2

PlayerInput.MaxDoubleClickDistance

PlayerInput.MaxDoubleClickDistance, field of type number

PlayerInput.MouseInsideWindow

PlayerInput.MouseInsideWindow, field of type bool

PlayerInput.MousePosition

PlayerInput.MousePosition, field of type Microsoft.Xna.Framework.Vector2

PlayerInput.MouseSpeed

PlayerInput.MouseSpeed, field of type Microsoft.Xna.Framework.Vector2

PlayerInput.MouseSpeedPerSecond

PlayerInput.MouseSpeedPerSecond, field of type Microsoft.Xna.Framework.Vector2

PlayerInput.NumberKeys

PlayerInput.NumberKeys, field of type table

PlayerInput.PrimaryMouseLabel

PlayerInput.PrimaryMouseLabel, field of type LocalizedString

PlayerInput.ScrollWheelSpeed

PlayerInput.ScrollWheelSpeed, field of type number

PlayerInput.SecondaryMouseLabel

PlayerInput.SecondaryMouseLabel, field of type LocalizedString