3#include <NDEVR/SoftwareService.h>
4#include <NDEVR/Battery.h>
5#include <NDEVR/Dictionary.h>
6#include <NDEVR/Buffer.h>
7#include <NDEVR/Vector.h>
8#include <NDEVR/RGBColor.h>
61 , pressed(percent > 0.5)
73 , intensity(intensity)
122 WindowInstance* m_default_window_instance =
nullptr;
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:52
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:59
Provides standard logic shared across all hardware controllers to be used with the software.
Definition ControllerInterface.h:17
virtual Vector< 2, fltp08 > vibration() const =0
virtual Buffer< HapticFeedback > hapticFeedback() const =0
virtual Buffer< Battery * > batteries() const =0
virtual bool requestColor(const RGBColor &color)=0
virtual RGBColor color() const =0
virtual Buffer< ControlTrigger > leftTriggers() const =0
virtual UUID id() const =0
virtual bool requestVibrating(fltp08 left, fltp08 right)=0
virtual Buffer< ControlStick > rightSticks() const =0
virtual Buffer< ControlStick > leftSticks() const =0
virtual void updateState()=0
virtual Buffer< ControlTrigger > rightTriggers() const =0
virtual void setWindowInstance(WindowInstance *)
Definition ControllerInterface.h:89
virtual Buffer< ControlButton > rightButtons() const =0
virtual Buffer< ControlButton > centerButtons() const =0
virtual Buffer< ControlButton > leftButtons() const =0
Stores services that allow the software to access physical hardware controllers that can.
Definition ControllerInterface.h:104
static ControllerInterfaceManager & Default()
void addController(ControllerInterface *joystick)
void removeController(UUID id)
ControllerInterfaceManager()
void findControllersSignal()
void controllerConnectionsChangedSignal()
void setDefaultWindowInstance(WindowInstance *default_window_instance)
const Dictionary< UUID, ControllerInterface * > & controllers() const
Dictionary< UUID, ControllerInterface * > m_controllers
Definition ControllerInterface.h:120
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:59
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Software Services provide an interface for adding to or changing the software behavior.
Definition SoftwareService.h:9
Software Service Managers take a Software service to modify the behavior of the software.
Definition SoftwareService.h:15
The core String class for the software.
Definition String.h:47
A thread is a single sequence stream within the software.
Definition Thread.h:66
Any text displayed to the user should be defined as a TranslatedString which allows the.
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:62
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:146
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved.
Definition BaseValues.hpp:230
Definition ControllerInterface.h:31
Vector< 2, fltp08 > position
Definition ControllerInterface.h:39
ControlStick(const UUID &id)
Definition ControllerInterface.h:32
ControlStick(const UUID &id, Vector< 2, fltp08 > &position)
Definition ControllerInterface.h:35
Definition ControllerInterface.h:54
ControlTrigger(const UUID &id, fltp08 percent)
Definition ControllerInterface.h:58
ControlTrigger(const UUID &id)
Definition ControllerInterface.h:55
Definition ControllerInterface.h:67
HapticFeedback(const UUID &id, fltp08 intensity)
Definition ControllerInterface.h:71
HapticFeedback(const UUID &id)
Definition ControllerInterface.h:68