Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
RawController.hpp
1#pragma once
2
3#include "input/controller/Controller.hpp"
4#include "Common.hpp"
5
10class RawController final : public Controller {
11
12public:
16 bool activate(int id) override;
17
21 void deactivate() override;
22
26 void update() override;
27
28 std::vector<float> allAxes;
29 std::vector<Controller::ControllerButton> allButtons;
30
31private:
32 int _rawAxesCount = 0;
34};
Represents a joystick or any additional controller.
Definition: Controller.hpp:9
Represents a controller used for debug, where all raw buttons are shown.
Definition: RawController.hpp:10
void deactivate() override
Definition: RawController.cpp:15
std::vector< float > allAxes
Raw intensity values on all axes.
Definition: RawController.hpp:28
void update() override
Definition: RawController.cpp:19
int _rawAxesCount
Number of axes returned by the system.
Definition: RawController.hpp:32
bool activate(int id) override
Definition: RawController.cpp:4
std::vector< Controller::ControllerButton > allButtons
State of each button.
Definition: RawController.hpp:29
int _rawButtonsCount
Number of buttons returned by the system.
Definition: RawController.hpp:33