You.i Engine
YiCursorInputBridge.h
Go to the documentation of this file.
1
// © You i Labs Inc. 2000-2017. All rights reserved.
2
#ifndef _YI_CURSOR_INPUT_BRIDGE_H_
3
#define _YI_CURSOR_INPUT_BRIDGE_H_
4
10
#include "
binding/YiScriptableObject.h
"
11
#include "
framework/YiPredef.h
"
12
#include "
signal/YiSignal.h
"
13
19
class
CYICursorInputBridge
:
public
CYIScriptableObject
20
{
21
public
:
22
enum
CURSOR_STATE
23
{
24
CURSOR_ON
,
25
CURSOR_OFF
26
};
27
28
CYICursorInputBridge
();
29
30
/*
31
\details This method should be called when the platform changes cursor state. The current internal state will be updated and all listeners of CursorStateChanged will be notified.
32
*/
33
void
SetCursorState
(
CURSOR_STATE
eState);
34
35
/*
36
\details Returns the current cursor state of the platform.
37
*/
38
CURSOR_STATE
GetCursorState
();
39
40
CYISignal<CURSOR_STATE>
CursorStateChanged
;
41
42
private
:
43
CURSOR_STATE
m_eCurrentCursorState;
44
};
45
50
#endif // _YI_CURSOR_INPUT_BRIDGE_H_
CYICursorInputBridge::SetCursorState
void SetCursorState(CURSOR_STATE eState)
YiScriptableObject.h
YiPredef.h
YiSignal.h
CYIScriptableObject
The base class for an object accessible from script source code.
Definition:
YiScriptableObject.h:28
CYICursorInputBridge::CURSOR_STATE
CURSOR_STATE
Definition:
YiCursorInputBridge.h:22
CYICursorInputBridge::CYICursorInputBridge
CYICursorInputBridge()
CYICursorInputBridge::CursorStateChanged
CYISignal< CURSOR_STATE > CursorStateChanged
Definition:
YiCursorInputBridge.h:40
CYICursorInputBridge
Utility to subscribe to or get the current state of the cursor for the platform, if available...
Definition:
YiCursorInputBridge.h:19
CYICursorInputBridge::GetCursorState
CURSOR_STATE GetCursorState()
CYISignal< CURSOR_STATE >
CYICursorInputBridge::CURSOR_ON
Definition:
YiCursorInputBridge.h:24
CYICursorInputBridge::CURSOR_OFF
Definition:
YiCursorInputBridge.h:25
platform
YiCursorInputBridge.h
Generated on Thu Aug 23 2018 03:08:03 for You.i Engine by
1.8.11