Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Android
Input
IAndroidInputHandler.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "AppInterface.h"
6
#include "KeyboardInput.h"
7
8
namespace
Eegeo
9
{
10
namespace
Android
11
{
12
namespace
Input
13
{
14
class
IAndroidInputHandler
15
{
16
public
:
17
virtual
~
IAndroidInputHandler
() { }
18
19
virtual
void
Event_TouchRotate (
const
AppInterface::RotateData
& data)=0;
20
virtual
void
Event_TouchRotate_Start (
const
AppInterface::RotateData
& data)=0;
21
virtual
void
Event_TouchRotate_End (
const
AppInterface::RotateData
& data)=0;
22
23
virtual
void
Event_TouchPinch (
const
AppInterface::PinchData
& data)=0;
24
virtual
void
Event_TouchPinch_Start (
const
AppInterface::PinchData
& data)=0;
25
virtual
void
Event_TouchPinch_End (
const
AppInterface::PinchData
& data)=0;
26
27
virtual
void
Event_TouchPan (
const
AppInterface::PanData
& data)=0;
28
virtual
void
Event_TouchPan_Start (
const
AppInterface::PanData
& data)=0;
29
virtual
void
Event_TouchPan_End (
const
AppInterface::PanData
& data)=0;
30
31
virtual
void
Event_TouchTap (
const
AppInterface::TapData
& data)=0;
32
virtual
void
Event_TouchDoubleTap (
const
AppInterface::TapData
& data)=0;
33
34
virtual
void
Event_TouchDown (
const
AppInterface::TouchData
& data)=0;
35
virtual
void
Event_TouchMove (
const
AppInterface::TouchData
& data)=0;
36
virtual
void
Event_TouchUp (
const
AppInterface::TouchData
& data)=0;
37
38
virtual
bool
Event_KeyPress(
const
AppInterface::KeyboardData
& data)=0;
39
virtual
void
AddKeyPressListener(
Eegeo::UI::NativeInput::IKeyboardInputKeyPressedHandler
* handler)=0;
40
virtual
bool
RemoveKeyPressListener(
Eegeo::UI::NativeInput::IKeyboardInputKeyPressedHandler
* handler)=0;
41
42
virtual
float
TranslateGlobalXToLocalX(
float
x) {
return
x; }
43
virtual
float
TranslateGlobalYToLocalY(
float
y) {
return
y; }
44
};
45
}
46
}
47
}
Generated on Sat Jun 10 2023 02:00:28 for eeGeo Platform SDK by
1.8.3.1