chrono::vehicle::ChJoystickButtonIRR Struct Reference

Description

Irrlicht interface to a specific joystick button.

#include <ChInteractiveDriverIRR.h>

Public Member Functions

bool IsPressed (const irr::SEvent::SJoystickEvent &joystickEvent, bool continuous=false)
 Return press state for this joystick event (if triggered by this button).
 
void Read (rapidjson::Document &d, const std::string &elementName, bool dbg_print)
 Read button configuration from JSON file.
 

Public Attributes

int id
 controller ID
 
int button
 controller button
 
std::string name
 buttoin name
 
int buttonPressedCount
 counter to identify continuous press
 
bool buttonPressed
 current output value
 

The documentation for this struct was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_vehicle/driver/ChInteractiveDriverIRR.h
  • /builds/uwsbel/chrono/src/chrono_vehicle/driver/ChInteractiveDriverIRR.cpp