YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::KeyboardJoypad::Impl Class Reference

Public Member Functions

bool parseButtonsSettings (yarp::os::Searchable &cfg)
 
void prepareWindow (const ImVec2 &position, const std::string &name)
 
void renderButtonsTable (ButtonsTable &buttons_table, bool hold_active, double joypadDeadzone, const std::vector< float > &joypadAxisValues, const std::vector< bool > &joypadButtonValues, std::vector< double > &values) const
 
bool initialize ()
 
void prepareFrame ()
 
void update ()
 
bool needUpdate () const
 
void close ()
 

Static Public Member Functions

static void GLMessageCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei, const GLchar *message, const void *)
 
static void glfwErrorCallback (int error, const char *description)
 

Public Attributes

GLFWwindow * window = nullptr
 
std::atomic_bool need_to_close {false}
 
std::atomic_bool closed {false}
 
std::atomic_bool initialized {false}
 
std::mutex mutex
 
ImVec4 button_inactive_color
 
ImVec4 button_active_color
 
Settings settings
 
AxesSettings axes_settings
 
std::vector< ButtonsTable > sticks
 
std::vector< std::vector< size_t > > sticks_to_axes
 
ButtonsTable buttons
 
ButtonState ctrl_button
 
std::vector< double > ctrl_value
 
std::vector< double > axes_values
 
std::vector< std::vector< double > > sticks_values
 
std::vector< double > buttons_values
 
std::vector< JoypadInfo > joypads
 
std::vector< float > joypad_axis_values
 
std::vector< bool > joypad_button_values
 
bool using_joypad = false
 
double last_gui_update_time = 0.0
 
std::thread::id gui_thread_id
 
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f)
 

Detailed Description

Definition at line 543 of file KeyboardJoypad.cpp.

Member Function Documentation

◆ close()

void yarp::dev::KeyboardJoypad::Impl::close ( )
inline

Definition at line 1133 of file KeyboardJoypad.cpp.

◆ glfwErrorCallback()

static void yarp::dev::KeyboardJoypad::Impl::glfwErrorCallback ( int  error,
const char *  description 
)
inlinestatic

Definition at line 584 of file KeyboardJoypad.cpp.

◆ GLMessageCallback()

static void yarp::dev::KeyboardJoypad::Impl::GLMessageCallback ( GLenum  source,
GLenum  type,
GLuint  id,
GLenum  severity,
GLsizei  ,
const GLchar *  message,
const void *   
)
inlinestatic

Definition at line 578 of file KeyboardJoypad.cpp.

◆ initialize()

bool yarp::dev::KeyboardJoypad::Impl::initialize ( )
inline

Definition at line 794 of file KeyboardJoypad.cpp.

◆ needUpdate()

bool yarp::dev::KeyboardJoypad::Impl::needUpdate ( ) const
inline

Definition at line 1124 of file KeyboardJoypad.cpp.

◆ parseButtonsSettings()

bool yarp::dev::KeyboardJoypad::Impl::parseButtonsSettings ( yarp::os::Searchable &  cfg)
inline

Definition at line 588 of file KeyboardJoypad.cpp.

◆ prepareFrame()

void yarp::dev::KeyboardJoypad::Impl::prepareFrame ( )
inline

Definition at line 887 of file KeyboardJoypad.cpp.

◆ prepareWindow()

void yarp::dev::KeyboardJoypad::Impl::prepareWindow ( const ImVec2 &  position,
const std::string &  name 
)
inline

Definition at line 758 of file KeyboardJoypad.cpp.

◆ renderButtonsTable()

void yarp::dev::KeyboardJoypad::Impl::renderButtonsTable ( ButtonsTable &  buttons_table,
bool  hold_active,
double  joypadDeadzone,
const std::vector< float > &  joypadAxisValues,
const std::vector< bool > &  joypadButtonValues,
std::vector< double > &  values 
) const
inline

Definition at line 765 of file KeyboardJoypad.cpp.

◆ update()

void yarp::dev::KeyboardJoypad::Impl::update ( )
inline

Definition at line 922 of file KeyboardJoypad.cpp.

Member Data Documentation

◆ axes_settings

AxesSettings yarp::dev::KeyboardJoypad::Impl::axes_settings

Definition at line 556 of file KeyboardJoypad.cpp.

◆ axes_values

std::vector<double> yarp::dev::KeyboardJoypad::Impl::axes_values

Definition at line 563 of file KeyboardJoypad.cpp.

◆ button_active_color

ImVec4 yarp::dev::KeyboardJoypad::Impl::button_active_color

Definition at line 553 of file KeyboardJoypad.cpp.

◆ button_inactive_color

ImVec4 yarp::dev::KeyboardJoypad::Impl::button_inactive_color

Definition at line 552 of file KeyboardJoypad.cpp.

◆ buttons

ButtonsTable yarp::dev::KeyboardJoypad::Impl::buttons

Definition at line 560 of file KeyboardJoypad.cpp.

◆ buttons_values

std::vector<double> yarp::dev::KeyboardJoypad::Impl::buttons_values

Definition at line 565 of file KeyboardJoypad.cpp.

◆ clear_color

ImVec4 yarp::dev::KeyboardJoypad::Impl::clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f)

Definition at line 575 of file KeyboardJoypad.cpp.

◆ closed

std::atomic_bool yarp::dev::KeyboardJoypad::Impl::closed {false}

Definition at line 548 of file KeyboardJoypad.cpp.

◆ ctrl_button

ButtonState yarp::dev::KeyboardJoypad::Impl::ctrl_button

Definition at line 561 of file KeyboardJoypad.cpp.

◆ ctrl_value

std::vector<double> yarp::dev::KeyboardJoypad::Impl::ctrl_value

Definition at line 562 of file KeyboardJoypad.cpp.

◆ gui_thread_id

std::thread::id yarp::dev::KeyboardJoypad::Impl::gui_thread_id

Definition at line 573 of file KeyboardJoypad.cpp.

◆ initialized

std::atomic_bool yarp::dev::KeyboardJoypad::Impl::initialized {false}

Definition at line 548 of file KeyboardJoypad.cpp.

◆ joypad_axis_values

std::vector<float> yarp::dev::KeyboardJoypad::Impl::joypad_axis_values

Definition at line 568 of file KeyboardJoypad.cpp.

◆ joypad_button_values

std::vector<bool> yarp::dev::KeyboardJoypad::Impl::joypad_button_values

Definition at line 569 of file KeyboardJoypad.cpp.

◆ joypads

std::vector<JoypadInfo> yarp::dev::KeyboardJoypad::Impl::joypads

Definition at line 567 of file KeyboardJoypad.cpp.

◆ last_gui_update_time

double yarp::dev::KeyboardJoypad::Impl::last_gui_update_time = 0.0

Definition at line 572 of file KeyboardJoypad.cpp.

◆ mutex

std::mutex yarp::dev::KeyboardJoypad::Impl::mutex

Definition at line 550 of file KeyboardJoypad.cpp.

◆ need_to_close

std::atomic_bool yarp::dev::KeyboardJoypad::Impl::need_to_close {false}

Definition at line 548 of file KeyboardJoypad.cpp.

◆ settings

Settings yarp::dev::KeyboardJoypad::Impl::settings

Definition at line 555 of file KeyboardJoypad.cpp.

◆ sticks

std::vector<ButtonsTable> yarp::dev::KeyboardJoypad::Impl::sticks

Definition at line 558 of file KeyboardJoypad.cpp.

◆ sticks_to_axes

std::vector<std::vector<size_t> > yarp::dev::KeyboardJoypad::Impl::sticks_to_axes

Definition at line 559 of file KeyboardJoypad.cpp.

◆ sticks_values

std::vector<std::vector<double> > yarp::dev::KeyboardJoypad::Impl::sticks_values

Definition at line 564 of file KeyboardJoypad.cpp.

◆ using_joypad

bool yarp::dev::KeyboardJoypad::Impl::using_joypad = false

Definition at line 570 of file KeyboardJoypad.cpp.

◆ window

GLFWwindow* yarp::dev::KeyboardJoypad::Impl::window = nullptr

Definition at line 546 of file KeyboardJoypad.cpp.


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