ManiaScript Trackmania 2020  30/10/2024
CInputPad Class Reference

game controller. More...

#include <2024_10_30.h>

Inheritance diagram for CInputPad:
CNod

Public Types

enum  EButton {
  Left, Right, Up, Down,
  A, B, X, Y,
  L1, R1, LeftStick, RightStick,
  Menu, View, LeftStick_Left, LeftStick_Right,
  LeftStick_Up, LeftStick_Down, RightStick_Left, RightStick_Right,
  RightStick_Up, RightStick_Down, L2, R2,
  None
}
 
enum  EPadType {
  Keyboard, Mouse, Generic, XBox,
  PlayStation, Vive
}
 

Public Member Functions

Void ClearRumble ()
 
Void AddRumble (Integer Duration, Real LargeMotor, Real SmallMotor)
 
Void SetColor (Vec3 Color)
 

Public Attributes

Integer const ControllerId
 
Ident const UserId
 
CInputPad::EPadType const Type
 
Text const ModelName
 
Integer const IdleDuration
 
Integer const Left
 
Integer const Right
 
Integer const Up
 
Integer const Down
 
Integer const A
 
Integer const B
 
Integer const X
 
Integer const Y
 
Integer const L1
 
Integer const R1
 
Integer const LeftStickBut
 
Integer const RightStickBut
 
Integer const Menu
 
Integer const View
 
Real const LeftStickX
 
Real const LeftStickY
 
Real const RightStickX
 
Real const RightStickY
 
Real const L2
 
Real const R2
 
Array< CInputPad::EButtonButtonEvents
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

game controller.

Definition at line 14799 of file 2024_10_30.h.

Member Enumeration Documentation

◆ EButton

Enumerator
Left 
Right 
Up 
Down 
L1 
R1 
LeftStick 
RightStick 
Menu 
View 
LeftStick_Left 
LeftStick_Right 
LeftStick_Up 
LeftStick_Down 
RightStick_Left 
RightStick_Right 
RightStick_Up 
RightStick_Down 
L2 
R2 
None 

Definition at line 14804 of file 2024_10_30.h.

14804  {
14805  Left,
14806  Right,
14807  Up,
14808  Down,
14809  A,
14810  B,
14811  X,
14812  Y,
14813  L1,
14814  R1,
14815  LeftStick,
14816  RightStick,
14817  Menu,
14818  View,
14821  LeftStick_Up,
14825  RightStick_Up,
14827  L2,
14828  R2,
14829  None,
14830  };

◆ EPadType

Enumerator
Keyboard 
Mouse 
Generic 
XBox 
PlayStation 
Vive 

Definition at line 14834 of file 2024_10_30.h.

14834  {
14835  Keyboard,
14836  Mouse,
14837  Generic,
14838  XBox,
14839  PlayStation,
14840  Vive,
14841  };

Member Function Documentation

◆ AddRumble()

Void CInputPad::AddRumble ( Integer  Duration,
Real  LargeMotor,
Real  SmallMotor 
)

Duration = 0 --> forever.

◆ ClearRumble()

Void CInputPad::ClearRumble ( )

◆ SetColor()

Void CInputPad::SetColor ( Vec3  Color)

(only works on PS4.) set to (0,0,0) to reset back to default color.

Member Data Documentation

◆ A

Integer const CInputPad::A

Definition at line 14881 of file 2024_10_30.h.

◆ B

Integer const CInputPad::B

Definition at line 14885 of file 2024_10_30.h.

◆ ButtonEvents

Array<CInputPad::EButton> CInputPad::ButtonEvents

Definition at line 14945 of file 2024_10_30.h.

◆ ControllerId

Integer const CInputPad::ControllerId

Definition at line 14845 of file 2024_10_30.h.

◆ Down

Integer const CInputPad::Down

Definition at line 14877 of file 2024_10_30.h.

◆ IdleDuration

Integer const CInputPad::IdleDuration

Definition at line 14861 of file 2024_10_30.h.

◆ L1

Integer const CInputPad::L1

Definition at line 14897 of file 2024_10_30.h.

◆ L2

Real const CInputPad::L2

Values in range (0.000000-1.000000)

Definition at line 14937 of file 2024_10_30.h.

◆ Left

Integer const CInputPad::Left

Definition at line 14865 of file 2024_10_30.h.

◆ LeftStickBut

Integer const CInputPad::LeftStickBut

Definition at line 14905 of file 2024_10_30.h.

◆ LeftStickX

Real const CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

Definition at line 14921 of file 2024_10_30.h.

◆ LeftStickY

Real const CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

Definition at line 14925 of file 2024_10_30.h.

◆ Menu

Integer const CInputPad::Menu

Definition at line 14913 of file 2024_10_30.h.

◆ ModelName

Text const CInputPad::ModelName

Definition at line 14857 of file 2024_10_30.h.

◆ R1

Integer const CInputPad::R1

Definition at line 14901 of file 2024_10_30.h.

◆ R2

Real const CInputPad::R2

Values in range (0.000000-1.000000)

Definition at line 14941 of file 2024_10_30.h.

◆ Right

Integer const CInputPad::Right

Definition at line 14869 of file 2024_10_30.h.

◆ RightStickBut

Integer const CInputPad::RightStickBut

Definition at line 14909 of file 2024_10_30.h.

◆ RightStickX

Real const CInputPad::RightStickX

Values in range (-1.000000-1.000000)

Definition at line 14929 of file 2024_10_30.h.

◆ RightStickY

Real const CInputPad::RightStickY

Values in range (-1.000000-1.000000)

Definition at line 14933 of file 2024_10_30.h.

◆ Type

CInputPad::EPadType const CInputPad::Type

Definition at line 14853 of file 2024_10_30.h.

◆ Up

Integer const CInputPad::Up

Definition at line 14873 of file 2024_10_30.h.

◆ UserId

Ident const CInputPad::UserId

Definition at line 14849 of file 2024_10_30.h.

◆ View

Integer const CInputPad::View

Definition at line 14917 of file 2024_10_30.h.

◆ X

Integer const CInputPad::X

Definition at line 14889 of file 2024_10_30.h.

◆ Y

Integer const CInputPad::Y

Definition at line 14893 of file 2024_10_30.h.


The documentation for this class was generated from the following file:
CInputPad::Generic
@ Generic
Definition: 2024_10_30.h:14837
CInputPad::RightStick_Left
@ RightStick_Left
Definition: 2024_10_30.h:14823
CInputPad::A
Integer const A
Definition: 2024_10_30.h:14881
CInputPad::Y
Integer const Y
Definition: 2024_10_30.h:14893
CInputPad::R1
Integer const R1
Definition: 2024_10_30.h:14901
CInputPad::X
Integer const X
Definition: 2024_10_30.h:14889
CInputPad::Left
Integer const Left
Definition: 2024_10_30.h:14865
CInputPad::B
Integer const B
Definition: 2024_10_30.h:14885
CInputPad::L1
Integer const L1
Definition: 2024_10_30.h:14897
CInputPad::LeftStick_Up
@ LeftStick_Up
Definition: 2024_10_30.h:14821
CInputPad::Menu
Integer const Menu
Definition: 2024_10_30.h:14913
CInputPad::LeftStick_Right
@ LeftStick_Right
Definition: 2024_10_30.h:14820
CInputPad::RightStick_Up
@ RightStick_Up
Definition: 2024_10_30.h:14825
CInputPad::RightStick
@ RightStick
Definition: 2024_10_30.h:14816
CInputPad::Up
Integer const Up
Definition: 2024_10_30.h:14873
CInputPad::Mouse
@ Mouse
Definition: 2024_10_30.h:14836
CInputPad::R2
Real const R2
Definition: 2024_10_30.h:14941
CInputPad::View
Integer const View
Definition: 2024_10_30.h:14917
CInputPad::Down
Integer const Down
Definition: 2024_10_30.h:14877
CInputPad::PlayStation
@ PlayStation
Definition: 2024_10_30.h:14839
CInputPad::LeftStick
@ LeftStick
Definition: 2024_10_30.h:14815
CInputPad::L2
Real const L2
Definition: 2024_10_30.h:14937
CInputPad::Keyboard
@ Keyboard
Definition: 2024_10_30.h:14835
CInputPad::XBox
@ XBox
Definition: 2024_10_30.h:14838
CInputPad::RightStick_Right
@ RightStick_Right
Definition: 2024_10_30.h:14824
CInputPad::None
@ None
Definition: 2024_10_30.h:14829
CInputPad::Right
Integer const Right
Definition: 2024_10_30.h:14869
CInputPad::LeftStick_Left
@ LeftStick_Left
Definition: 2024_10_30.h:14819
CInputPad::Vive
@ Vive
Definition: 2024_10_30.h:14840
CInputPad::LeftStick_Down
@ LeftStick_Down
Definition: 2024_10_30.h:14822
CInputPad::RightStick_Down
@ RightStick_Down
Definition: 2024_10_30.h:14826