5 #include "IEmscriptenInputHandler.h"
6 #include "PanGesture.h"
7 #include "RotateGesture.h"
8 #include "ZoomGesture.h"
9 #include "TiltGesture.h"
10 #include "TouchGesture.h"
11 #include "TapGesture.h"
12 #include "TouchPanGesture.h"
13 #include "TouchRotateGesture.h"
14 #include "TouchPinchGesture.h"
15 #include "InputEvents.h"
16 #include "UserIdleService.h"
27 : PanStartThresholdPixels(0.f)
28 , ZoomSensitivity(0.f)
32 float PanStartThresholdPixels;
33 float ZoomSensitivity;
57 static u32 MakeKeyboardModifiers(
bool altDown,
bool shiftDown,
bool controlDown);
61 const float screenWidth,
62 const float screenHeight,
69 void Update(
float deltaSeconds);
71 bool IsMouseInsideWindow();
72 void SetAllInputEventsToPointerUp(
int x,
int y);
76 static MouseInputEvent MakeMouseInputEvent(MouseInputAction mouseInputAction, u32 modifiers,
float pointerX,
float pointerY,
float wheelDelta);
78 void NotifyScreenPropertiesChanged(
int screenWidth,
int screenHeight);
86 config.PanStartThresholdPixels = 4.f;
87 config.ZoomSensitivity = 0.0003f;
88 config.MaxZoomDelta = 5.0f;