Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Emscripten
Input
ZoomGesture.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "AppInterface.h"
6
#include "IEmscriptenInputHandler.h"
7
#include "InputEvents.h"
8
9
namespace
Eegeo
10
{
11
namespace
Emscripten
12
{
13
namespace
Input
14
{
15
class
ZoomGesture
16
{
17
private
:
18
IEmscriptenInputHandler
* m_pZoomHandler;
19
const
float
m_sensitivity;
20
const
float
m_maxZoomDelta;
21
float
m_zoomAccumulator;
22
23
void
TruncateZoomAccumulator();
24
public
:
25
ZoomGesture
(
IEmscriptenInputHandler
* pZoomHandler,
float
sensitivity,
float
maxZoomDelta);
26
27
void
PointerMove(
const
MouseInputEvent
& event);
28
29
void
Update(
float
dt);
30
};
31
}
32
}
33
}
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1