Some gestures comments tweaks...
This commit is contained in:
parent
13bef7aa02
commit
d1133ca8d3
2 changed files with 5 additions and 5 deletions
|
@ -2674,7 +2674,7 @@ static EM_BOOL EmscriptenInputCallback(int eventType, const EmscriptenTouchEvent
|
||||||
gestureEvent.position[1].y /= (float)GetScreenHeight();
|
gestureEvent.position[1].y /= (float)GetScreenHeight();
|
||||||
|
|
||||||
// Gesture data is sent to gestures system for processing
|
// Gesture data is sent to gestures system for processing
|
||||||
ProcessGestureEvent(gestureEvent); // Process obtained gestures data
|
ProcessGestureEvent(gestureEvent);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,12 +46,12 @@
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Defines and Macros
|
// Defines and Macros
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
#define FORCE_TO_SWIPE 0.0005f // Measured in normalized pixels / time
|
#define FORCE_TO_SWIPE 0.0005f // Measured in normalized screen units/time
|
||||||
#define MINIMUM_DRAG 0.015f // Measured in normalized pixels [0..1]
|
#define MINIMUM_DRAG 0.015f // Measured in normalized screen units (0.0f to 1.0f)
|
||||||
#define MINIMUM_PINCH 0.005f // Measured in normalized pixels [0..1]
|
#define MINIMUM_PINCH 0.005f // Measured in normalized screen units (0.0f to 1.0f)
|
||||||
#define TAP_TIMEOUT 300 // Time in milliseconds
|
#define TAP_TIMEOUT 300 // Time in milliseconds
|
||||||
#define PINCH_TIMEOUT 300 // Time in milliseconds
|
#define PINCH_TIMEOUT 300 // Time in milliseconds
|
||||||
#define DOUBLETAP_RANGE 0.03f
|
#define DOUBLETAP_RANGE 0.03f // Measured in normalized screen units (0.0f to 1.0f)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Types and Structures Definition
|
// Types and Structures Definition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue