PxVehicleDrive4WRawInputData Class Reference
[Vehicle]
Used to produce smooth vehicle driving control values from analog inputs.
More...
#include <PxVehicleUtilControl.h>
Public Member Functions | |
PxVehicleDrive4WRawInputData () | |
~PxVehicleDrive4WRawInputData () | |
void | setDigitalAccel (const bool accelKeyPressed) |
Record if the accel button has been pressed on keyboard. | |
void | setDigitalBrake (const bool brakeKeyPressed) |
Record if the brake button has been pressed on keyboard. | |
void | setDigitalHandbrake (const bool handbrakeKeyPressed) |
Record if the handbrake button has been pressed on keyboard. | |
void | setDigitalSteerLeft (const bool steerLeftKeyPressed) |
Record if the left steer button has been pressed on keyboard. | |
void | setDigitalSteerRight (const bool steerRightKeyPressed) |
Record if the right steer button has been pressed on keyboard. | |
bool | getDigitalAccel () const |
Return if the accel button has been pressed on keyboard. | |
bool | getDigitalBrake () const |
Return if the brake button has been pressed on keyboard. | |
bool | getDigitalHandbrake () const |
Return if the handbrake button has been pressed on keyboard. | |
bool | getDigitalSteerLeft () const |
Return if the left steer button has been pressed on keyboard. | |
bool | getDigitalSteerRight () const |
Return if the right steer button has been pressed on keyboard. | |
void | setAnalogAccel (const PxReal accel) |
Set the analog accel value from the gamepad. | |
void | setAnalogBrake (const PxReal brake) |
Set the analog brake value from the gamepad. | |
void | setAnalogHandbrake (const PxReal handbrake) |
Set the analog handbrake value from the gamepad. | |
void | setAnalogSteer (const PxReal steer) |
Set the analog steer value from the gamepad. | |
PxReal | getAnalogAccel () const |
Return the analog accel value from the gamepad. | |
PxReal | getAnalogBrake () const |
Return the analog brake value from the gamepad. | |
PxReal | getAnalogHandbrake () const |
Return the analog handbrake value from the gamepad. | |
PxReal | getAnalogSteer () const |
Return the analog steer value from the gamepad. | |
void | setGearUp (const bool gearUpKeyPressed) |
Record if the gearup button has been pressed on keyboard or gamepad. | |
void | setGearDown (const bool gearDownKeyPressed) |
Record if the geardown button has been pressed on keyboard or gamepad. | |
bool | getGearUp () const |
Return if the gearup button has been pressed on keyboard or gamepad. | |
bool | getGearDown () const |
Record if the geardown button has been pressed on keyboard or gamepad. | |
Private Attributes | |
bool | mRawDigitalInputs [PxVehicleDrive4W::eMAX_NUM_DRIVE4W_ANALOG_INPUTS] |
PxReal | mRawAnalogInputs [PxVehicleDrive4W::eMAX_NUM_DRIVE4W_ANALOG_INPUTS] |
bool | mGearUp |
bool | mGearDown |
Detailed Description
Used to produce smooth vehicle driving control values from analog inputs.
- See also:
- PxVehicleDrive4WSmoothDigitalRawInputsAndSetAnalogInputs, PxVehicleDrive4WSmoothAnalogRawInputsAndSetAnalogInputs
Constructor & Destructor Documentation
PxVehicleDrive4WRawInputData::PxVehicleDrive4WRawInputData | ( | ) | [inline] |
References PxVehicleDrive4W::eMAX_NUM_DRIVE4W_ANALOG_INPUTS.
PxVehicleDrive4WRawInputData::~PxVehicleDrive4WRawInputData | ( | ) | [inline] |
Member Function Documentation
PxReal PxVehicleDrive4WRawInputData::getAnalogAccel | ( | ) | const [inline] |
PxReal PxVehicleDrive4WRawInputData::getAnalogBrake | ( | ) | const [inline] |
PxReal PxVehicleDrive4WRawInputData::getAnalogHandbrake | ( | ) | const [inline] |
Return the analog handbrake value from the gamepad.
References PxVehicleDrive4W::eANALOG_INPUT_HANDBRAKE.
PxReal PxVehicleDrive4WRawInputData::getAnalogSteer | ( | ) | const [inline] |
Return the analog steer value from the gamepad.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_RIGHT.
bool PxVehicleDrive4WRawInputData::getDigitalAccel | ( | ) | const [inline] |
Return if the accel button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_ACCEL.
bool PxVehicleDrive4WRawInputData::getDigitalBrake | ( | ) | const [inline] |
Return if the brake button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_BRAKE.
bool PxVehicleDrive4WRawInputData::getDigitalHandbrake | ( | ) | const [inline] |
Return if the handbrake button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_HANDBRAKE.
bool PxVehicleDrive4WRawInputData::getDigitalSteerLeft | ( | ) | const [inline] |
Return if the left steer button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_LEFT.
bool PxVehicleDrive4WRawInputData::getDigitalSteerRight | ( | ) | const [inline] |
Return if the right steer button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_RIGHT.
bool PxVehicleDrive4WRawInputData::getGearDown | ( | ) | const [inline] |
Record if the geardown button has been pressed on keyboard or gamepad.
bool PxVehicleDrive4WRawInputData::getGearUp | ( | ) | const [inline] |
Return if the gearup button has been pressed on keyboard or gamepad.
void PxVehicleDrive4WRawInputData::setAnalogAccel | ( | const PxReal | accel | ) | [inline] |
void PxVehicleDrive4WRawInputData::setAnalogBrake | ( | const PxReal | brake | ) | [inline] |
void PxVehicleDrive4WRawInputData::setAnalogHandbrake | ( | const PxReal | handbrake | ) | [inline] |
Set the analog handbrake value from the gamepad.
References PxVehicleDrive4W::eANALOG_INPUT_HANDBRAKE.
void PxVehicleDrive4WRawInputData::setAnalogSteer | ( | const PxReal | steer | ) | [inline] |
Set the analog steer value from the gamepad.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_RIGHT.
void PxVehicleDrive4WRawInputData::setDigitalAccel | ( | const bool | accelKeyPressed | ) | [inline] |
Record if the accel button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_ACCEL.
void PxVehicleDrive4WRawInputData::setDigitalBrake | ( | const bool | brakeKeyPressed | ) | [inline] |
Record if the brake button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_BRAKE.
void PxVehicleDrive4WRawInputData::setDigitalHandbrake | ( | const bool | handbrakeKeyPressed | ) | [inline] |
Record if the handbrake button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_HANDBRAKE.
void PxVehicleDrive4WRawInputData::setDigitalSteerLeft | ( | const bool | steerLeftKeyPressed | ) | [inline] |
Record if the left steer button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_LEFT.
void PxVehicleDrive4WRawInputData::setDigitalSteerRight | ( | const bool | steerRightKeyPressed | ) | [inline] |
Record if the right steer button has been pressed on keyboard.
References PxVehicleDrive4W::eANALOG_INPUT_STEER_RIGHT.
void PxVehicleDrive4WRawInputData::setGearDown | ( | const bool | gearDownKeyPressed | ) | [inline] |
Record if the geardown button has been pressed on keyboard or gamepad.
void PxVehicleDrive4WRawInputData::setGearUp | ( | const bool | gearUpKeyPressed | ) | [inline] |
Record if the gearup button has been pressed on keyboard or gamepad.
Member Data Documentation
bool PxVehicleDrive4WRawInputData::mGearDown [private] |
bool PxVehicleDrive4WRawInputData::mGearUp [private] |
PxReal PxVehicleDrive4WRawInputData::mRawAnalogInputs[PxVehicleDrive4W::eMAX_NUM_DRIVE4W_ANALOG_INPUTS] [private] |
bool PxVehicleDrive4WRawInputData::mRawDigitalInputs[PxVehicleDrive4W::eMAX_NUM_DRIVE4W_ANALOG_INPUTS] [private] |
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com