Trackmania ManiaScript Reference 2024.9.17.1117
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::EButton > ButtonEvents
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

game controller.

Member Function Documentation

◆ AddRumble()

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

Duration = 0 --> forever.

◆ SetColor()

Void CInputPad::SetColor ( Vec3 Color)

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

Member Data Documentation

◆ L2

Real const CInputPad::L2

Values in range (0.000000-1.000000)

◆ LeftStickX

Real const CInputPad::LeftStickX

Values in range (-1.000000-1.000000)

◆ LeftStickY

Real const CInputPad::LeftStickY

Values in range (-1.000000-1.000000)

◆ R2

Real const CInputPad::R2

Values in range (0.000000-1.000000)

◆ RightStickX

Real const CInputPad::RightStickX

Values in range (-1.000000-1.000000)

◆ RightStickY

Real const CInputPad::RightStickY

Values in range (-1.000000-1.000000)


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