Switch Controller
|
#include <Controller.h>
Public Types | |
enum | stickIndicies { left , right , hat } |
Public Member Functions | |
Controller (const boost::program_options::variables_map &vm) | |
std::array< uint8_t, 8 > | getData () const |
Static Public Member Functions | |
static auto | getButtons (const boost::program_options::variables_map &vm) |
static constexpr auto | convertSFML_Axis (float pos) |
static auto | getSticks (const boost::program_options::variables_map &vm) |
static constexpr std::array< uint8_t, 2 > | digtalToAnalogConversion (bool up, bool right, bool down, bool left) |
static constexpr std::array< bool, 4 > | analogToDigitalConversion (std::array< uint8_t, 2 > sticks) |
static constexpr std::array< uint8_t, 2 > | adjustStickValueForDeadzone (std::array< uint8_t, 2 > sticks) |
static constexpr uint8_t | convertSticksToHat (std::array< uint8_t, 2 > sticks) |
Static Public Attributes | |
static constexpr auto | buttonMapping |
static constexpr int | JOYSTICK_DEADZONE = 30 |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
staticconstexpr |
|
staticconstexpr |