YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
KeyboardJoypad.cpp File Reference
#include <GL/glew.h>
#include <GL/gl.h>
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <stdio.h>
#include <mutex>
#include <atomic>
#include <unordered_map>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <thread>
#include <sstream>
#include <iomanip>
#include <yarp/os/LogStream.h>
#include <KeyboardJoypad.h>
#include <KeyboardJoypadLogComponent.h>
+ Include dependency graph for KeyboardJoypad.cpp:

Go to the source code of this file.

Classes

struct  ButtonValue
 
struct  ButtonState
 
struct  ButtonsTable
 
struct  Settings
 
struct  AxisSettings
 
struct  AxesSettings
 
struct  JoypadInfo
 
class  yarp::dev::KeyboardJoypad::Impl
 

Macros

#define GL_GLEXT_PROTOTYPES
 
#define GL3_PROTOTYPES
 
#define GL_SILENCE_DEPRECATION
 

Enumerations

enum class  ButtonType {
  REGULAR ,
  TOGGLE
}
 
enum class  Axis {
  WS = 0 ,
  AD = 1 ,
  UP_DOWN = 2 ,
  LEFT_RIGHT = 3
}
 

Functions

static bool parseFloat (yarp::os::Searchable &cfg, const std::string &key, float min_value, float max_value, float &value)
 
static bool parseInt (yarp::os::Searchable &cfg, const std::string &key, int min_value, int max_value, int &value)
 

Macro Definition Documentation

◆ GL3_PROTOTYPES

#define GL3_PROTOTYPES

Definition at line 10 of file KeyboardJoypad.cpp.

◆ GL_GLEXT_PROTOTYPES

#define GL_GLEXT_PROTOTYPES

Definition at line 9 of file KeyboardJoypad.cpp.

◆ GL_SILENCE_DEPRECATION

#define GL_SILENCE_DEPRECATION

Definition at line 11 of file KeyboardJoypad.cpp.

Enumeration Type Documentation

◆ Axis

enum class Axis
strong
Enumerator
WS 
AD 
UP_DOWN 
LEFT_RIGHT 

Definition at line 401 of file KeyboardJoypad.cpp.

◆ ButtonType

enum class ButtonType
strong
Enumerator
REGULAR 
TOGGLE 

Definition at line 50 of file KeyboardJoypad.cpp.

Function Documentation

◆ parseFloat()

static bool parseFloat ( yarp::os::Searchable &  cfg,
const std::string &  key,
float  min_value,
float  max_value,
float &  value 
)
static

Definition at line 185 of file KeyboardJoypad.cpp.

◆ parseInt()

static bool parseInt ( yarp::os::Searchable &  cfg,
const std::string &  key,
int  min_value,
int  max_value,
int &  value 
)
static

Definition at line 209 of file KeyboardJoypad.cpp.