17 #ifndef KEYBOARDROUTER_H
18 #define KEYBOARDROUTER_H
21 #include "ControllerEvent.h"
22 #include "ControllerFactory.h"
23 #include "InputRouter.h"
24 #include "KeyScheme.h"
87 #endif // KEYBOARDROUTER_H
Factory for constructing VirtualControllers to represent keyboard devices as controllers.
Definition: KeyboardRouter.h:38
Software represention and state capable of describing almost all physical controllers.
Definition: VirtualController.h:36
Base interface for constructing virtual controllers from a deviceId.
Definition: ControllerFactory.h:34
virtual VirtualController * createNewController(int deviceId) const override
Returns a new VirtualController for the specified deviceId.
A platform independent event generated by controller device.
Definition: ControllerEvent.h:34
virtual bool handlesControllerEvent(const ControllerEvent *event) const override
Returns whether or not this ControllerFactory can process the specified event.
KeyboardControllerFactory(const KeyScheme &keyScheme)
Constructs a KeyboardControllerFactory from input schemes.
Represents a scheme mapping keyboard input to output actions.
Definition: KeyScheme.h:28
bool addKeyboardControllerFactory(const KeyboardControllerFactory &factory)
Adds the specified KeyboardControllerFactory to the list of factories to route by.
virtual bool intersects(const ControllerFactory &otherFactory) const override
Returns whether or not this ControllerFactory intersects (i.e. overlaps input schemes) with the speci...
Routes Keyboard-related ControllerEvents according to inherent KeyboardControllerFactory specificatio...
Definition: KeyboardRouter.h:31
static KeyboardRouter * getInstance()
Returns the singleton instance of the KeyboardRouter.