Trackmania ManiaScript Reference 2025.6.19.2137
A ManiaScript Reference of the new Trackmania.
Loading...
Searching...
No Matches
CInputPad Class Reference

game controller. More...

#include <doc.h>

Inheritance diagram for CInputPad:
[legend]

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.

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 

◆ EPadType

Enumerator
Keyboard 
Mouse 
Generic 
XBox 
PlayStation 
Vive 

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

◆ B

Integer const CInputPad::B

◆ ButtonEvents

Array<CInputPad::EButton> CInputPad::ButtonEvents

◆ ControllerId

Integer const CInputPad::ControllerId

◆ Down

Integer const CInputPad::Down

◆ IdleDuration

Integer const CInputPad::IdleDuration

◆ L1

Integer const CInputPad::L1

◆ L2

Real const CInputPad::L2

Values in range (0.000000-1.000000)

◆ Left

Integer const CInputPad::Left

◆ LeftStickBut

Integer const CInputPad::LeftStickBut

◆ LeftStickX

Real const CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

◆ LeftStickY

Real const CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

◆ Menu

Integer const CInputPad::Menu

◆ ModelName

Text const CInputPad::ModelName

◆ R1

Integer const CInputPad::R1

◆ R2

Real const CInputPad::R2

Values in range (0.000000-1.000000)

◆ Right

Integer const CInputPad::Right

◆ RightStickBut

Integer const CInputPad::RightStickBut

◆ RightStickX

Real const CInputPad::RightStickX

Values in range (-1.000000-1.000000)

◆ RightStickY

Real const CInputPad::RightStickY

Values in range (-1.000000-1.000000)

◆ Type

CInputPad::EPadType const CInputPad::Type

◆ Up

Integer const CInputPad::Up

◆ UserId

Ident const CInputPad::UserId

◆ View

Integer const CInputPad::View

◆ X

Integer const CInputPad::X

◆ Y

Integer const CInputPad::Y

The documentation for this class was generated from the following file: