Gorilla.Controller.Input.Types

Unit Gorilla.Controller.Input.Types.pas

Records

Enumerations

  • enum  TGorillaInputDeviceType  = ( Keyboard, Mouse, GamePad ) ;
  • enum  TGorillaInputMode  = ( Activated, Deactivated ) ;
  • enum  TGorillaMouseState  = ( LButtonDown, LButtonUp, RButtonDown, RButtonUp, MButtonDown, MButtonUp, X1ButtonDown, X1ButtonUp, X2ButtonDown, X2ButtonUp, LButtonDblClick, RButtonDblClick, MButtonDblClick, X1ButtonDblClick, X2ButtonDblClick, MouseMove, MouseWheel ) ;
  • enum  TGorillaCharacterControllerHotKey  = ( UnknownHotKey, KeyboardMoveForward, KeyboardMoveBackward, KeyboardMoveLeft, KeyboardMoveRight, KeyboardJump, KeyboardCrouch, KeyboardCrawl, KeyboardBoost, KeyboardAim, KeyboardCustomAction1, KeyboardCustomAction2, KeyboardCustomAction3, KeyboardCustomAction4, KeyboardStart, KeyboardMode, KeyboardBack, KeyboardMenuUp, KeyboardMenuDown, KeyboardMenuLeft, KeyboardMenuRight, MouseDragMove, MouseLeftButton, MouseMiddleButton, MouseRightButton, GamePadMove, GamePadMoveForward, GamePadMoveBackward, GamePadMoveLeft, GamePadMoveRight, GamePadJump, GamePadCrouch, GamePadCrawl, GamePadBoost, GamePadAim, GamePadButtonA, GamePadButtonB, GamePadButtonX, GamePadButtonY, GamePadStart, GamePadMode, GamePadBack, GamePadMenuUp, GamePadMenuDown, GamePadMenuLeft, GamePadMenuRight ) ;
  • enum  TGorillaCharacterControllerState  = ( fpIdle, fpMoving, fpRotating, fpRotateMoving, fpBoost, fpCrouching, fpCrawling, fpJumping, fpAiming, fpPushing, fpPulling, fpCustomAction, fpClick, fpStart, fpMode, fpBack, fpNavigation ) ;
  • enum  TGorillaGamePadDeviceType  = ( Default, Wheel, ArcadeStick, FlightStick, DancePad ) ;
  • enum  TGorillaGamePadButton  = ( None, DPadUp, DPadDown, DPadLeft, DPadRight, StartButton, ModeButton, BackButton, LeftThumbStick, RightThumbStick, LeftShoulder, RightShoulder, ButtonA, ButtonB, ButtonX, ButtonY ) ;

Constants

    Mics. types

    • type TGorillaInputCode = Int64;

TGorillaCharacterControllerHotKey

enum TGorillaCharacterControllerHotKey = ( UnknownHotKey, KeyboardMoveForward, KeyboardMoveBackward, KeyboardMoveLeft, KeyboardMoveRight, KeyboardJump, KeyboardCrouch, KeyboardCrawl, KeyboardBoost, KeyboardAim, KeyboardCustomAction1, KeyboardCustomAction2, KeyboardCustomAction3, KeyboardCustomAction4, KeyboardStart, KeyboardMode, KeyboardBack, KeyboardMenuUp, KeyboardMenuDown, KeyboardMenuLeft, KeyboardMenuRight, MouseDragMove, MouseLeftButton, MouseMiddleButton, MouseRightButton, GamePadMove, GamePadMoveForward, GamePadMoveBackward, GamePadMoveLeft, GamePadMoveRight, GamePadJump, GamePadCrouch, GamePadCrawl, GamePadBoost, GamePadAim, GamePadButtonA, GamePadButtonB, GamePadButtonX, GamePadButtonY, GamePadStart, GamePadMode, GamePadBack, GamePadMenuUp, GamePadMenuDown, GamePadMenuLeft, GamePadMenuRight ) ;

The TFirstPersonHotKey enumeration type defines all registered hotkeys for keyboard, mouse and gamepad input.

TGorillaCharacterControllerState

enum TGorillaCharacterControllerState = ( fpIdle, fpMoving, fpRotating, fpRotateMoving, fpBoost, fpCrouching, fpCrawling, fpJumping, fpAiming, fpPushing, fpPulling, fpCustomAction, fpClick, fpStart, fpMode, fpBack, fpNavigation ) ;

Defines the basic states of firstperson controller. It is possible that multiple states are set. "Idle" or "Moving" state are always set, depending on the current situation. If player standing still, than "Idle" is active. If player is moving, than "Moving" shall be activated. The optional states "Boost", "Crouching", "Jumping", ... depending on the pressed hotkeys for those actions.