ManiaScript Trackmania 2020  14/07/2025
CInputPad Class Reference

game controller. More...

#include <2025_07_14.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 14827 of file 2025_07_14.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 14832 of file 2025_07_14.h.

14832  {
14833  Left,
14834  Right,
14835  Up,
14836  Down,
14837  A,
14838  B,
14839  X,
14840  Y,
14841  L1,
14842  R1,
14843  LeftStick,
14844  RightStick,
14845  Menu,
14846  View,
14849  LeftStick_Up,
14853  RightStick_Up,
14855  L2,
14856  R2,
14857  None,
14858  };

◆ EPadType

Enumerator
Keyboard 
Mouse 
Generic 
XBox 
PlayStation 
Vive 

Definition at line 14862 of file 2025_07_14.h.

14862  {
14863  Keyboard,
14864  Mouse,
14865  Generic,
14866  XBox,
14867  PlayStation,
14868  Vive,
14869  };

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 14909 of file 2025_07_14.h.

◆ B

Integer const CInputPad::B

Definition at line 14913 of file 2025_07_14.h.

◆ ButtonEvents

Array<CInputPad::EButton> CInputPad::ButtonEvents

Definition at line 14973 of file 2025_07_14.h.

◆ ControllerId

Integer const CInputPad::ControllerId

Definition at line 14873 of file 2025_07_14.h.

◆ Down

Integer const CInputPad::Down

Definition at line 14905 of file 2025_07_14.h.

◆ IdleDuration

Integer const CInputPad::IdleDuration

Definition at line 14889 of file 2025_07_14.h.

◆ L1

Integer const CInputPad::L1

Definition at line 14925 of file 2025_07_14.h.

◆ L2

Real const CInputPad::L2

Values in range (0.000000-1.000000)

Definition at line 14965 of file 2025_07_14.h.

◆ Left

Integer const CInputPad::Left

Definition at line 14893 of file 2025_07_14.h.

◆ LeftStickBut

Integer const CInputPad::LeftStickBut

Definition at line 14933 of file 2025_07_14.h.

◆ LeftStickX

Real const CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

Definition at line 14949 of file 2025_07_14.h.

◆ LeftStickY

Real const CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

Definition at line 14953 of file 2025_07_14.h.

◆ Menu

Integer const CInputPad::Menu

Definition at line 14941 of file 2025_07_14.h.

◆ ModelName

Text const CInputPad::ModelName

Definition at line 14885 of file 2025_07_14.h.

◆ R1

Integer const CInputPad::R1

Definition at line 14929 of file 2025_07_14.h.

◆ R2

Real const CInputPad::R2

Values in range (0.000000-1.000000)

Definition at line 14969 of file 2025_07_14.h.

◆ Right

Integer const CInputPad::Right

Definition at line 14897 of file 2025_07_14.h.

◆ RightStickBut

Integer const CInputPad::RightStickBut

Definition at line 14937 of file 2025_07_14.h.

◆ RightStickX

Real const CInputPad::RightStickX

Values in range (-1.000000-1.000000)

Definition at line 14957 of file 2025_07_14.h.

◆ RightStickY

Real const CInputPad::RightStickY

Values in range (-1.000000-1.000000)

Definition at line 14961 of file 2025_07_14.h.

◆ Type

CInputPad::EPadType const CInputPad::Type

Definition at line 14881 of file 2025_07_14.h.

◆ Up

Integer const CInputPad::Up

Definition at line 14901 of file 2025_07_14.h.

◆ UserId

Ident const CInputPad::UserId

Definition at line 14877 of file 2025_07_14.h.

◆ View

Integer const CInputPad::View

Definition at line 14945 of file 2025_07_14.h.

◆ X

Integer const CInputPad::X

Definition at line 14917 of file 2025_07_14.h.

◆ Y

Integer const CInputPad::Y

Definition at line 14921 of file 2025_07_14.h.


The documentation for this class was generated from the following file:
CInputPad::Generic
@ Generic
Definition: 2025_07_14.h:14865
CInputPad::RightStick_Left
@ RightStick_Left
Definition: 2025_07_14.h:14851
CInputPad::A
Integer const A
Definition: 2025_07_14.h:14909
CInputPad::Y
Integer const Y
Definition: 2025_07_14.h:14921
CInputPad::R1
Integer const R1
Definition: 2025_07_14.h:14929
CInputPad::X
Integer const X
Definition: 2025_07_14.h:14917
CInputPad::Left
Integer const Left
Definition: 2025_07_14.h:14893
CInputPad::B
Integer const B
Definition: 2025_07_14.h:14913
CInputPad::L1
Integer const L1
Definition: 2025_07_14.h:14925
CInputPad::LeftStick_Up
@ LeftStick_Up
Definition: 2025_07_14.h:14849
CInputPad::Menu
Integer const Menu
Definition: 2025_07_14.h:14941
CInputPad::LeftStick_Right
@ LeftStick_Right
Definition: 2025_07_14.h:14848
CInputPad::RightStick_Up
@ RightStick_Up
Definition: 2025_07_14.h:14853
CInputPad::RightStick
@ RightStick
Definition: 2025_07_14.h:14844
CInputPad::Up
Integer const Up
Definition: 2025_07_14.h:14901
CInputPad::Mouse
@ Mouse
Definition: 2025_07_14.h:14864
CInputPad::R2
Real const R2
Definition: 2025_07_14.h:14969
CInputPad::View
Integer const View
Definition: 2025_07_14.h:14945
CInputPad::Down
Integer const Down
Definition: 2025_07_14.h:14905
CInputPad::PlayStation
@ PlayStation
Definition: 2025_07_14.h:14867
CInputPad::LeftStick
@ LeftStick
Definition: 2025_07_14.h:14843
CInputPad::L2
Real const L2
Definition: 2025_07_14.h:14965
CInputPad::Keyboard
@ Keyboard
Definition: 2025_07_14.h:14863
CInputPad::XBox
@ XBox
Definition: 2025_07_14.h:14866
CInputPad::RightStick_Right
@ RightStick_Right
Definition: 2025_07_14.h:14852
CInputPad::None
@ None
Definition: 2025_07_14.h:14857
CInputPad::Right
Integer const Right
Definition: 2025_07_14.h:14897
CInputPad::LeftStick_Left
@ LeftStick_Left
Definition: 2025_07_14.h:14847
CInputPad::Vive
@ Vive
Definition: 2025_07_14.h:14868
CInputPad::LeftStick_Down
@ LeftStick_Down
Definition: 2025_07_14.h:14850
CInputPad::RightStick_Down
@ RightStick_Down
Definition: 2025_07_14.h:14854