1 #ifndef INPUTEVENTGENERATOR_HH
2 #define INPUTEVENTGENERATOR_HH
14 class CommandController;
16 class EventDistributor;
49 typedef std::shared_ptr<const Event> EventPtr;
52 void handle(
const SDL_Event& event);
53 void setGrabInput(
bool grab);
56 virtual void update(
const Setting& setting);
59 virtual int signalEvent(
const std::shared_ptr<const Event>& event);
62 const std::unique_ptr<BooleanSetting> grabInput;
63 const std::unique_ptr<EscapeGrabCmd> escapeGrabCmd;
66 enum EscapeGrabState {
68 ESCAPE_GRAB_WAIT_LOST,
73 void setNewOsdControlButtonState(
74 unsigned newState,
const EventPtr& origEvent);
75 void triggerOsdControlEventsFromJoystickAxisMotion(
76 unsigned axis,
short value,
const EventPtr& origEvent);
77 void osdControlChangeButton(
78 bool up,
unsigned changedButtonMask,
const EventPtr& origEvent);
79 void triggerOsdControlEventsFromJoystickButtonEvent(
80 unsigned button,
bool up,
const EventPtr& origEvent);
81 void triggerOsdControlEventsFromKeyEvent(
90 unsigned osdControlButtonsState;