ZFFramework
 
Loading...
Searching...
No Matches
ZFUIKeyboardState.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIKeyboardState_h_
7#define _ZFI_ZFUIKeyboardState_h_
8
9#include "ZFUIKeyCode.h"
10
12
16zffinal zfclass ZFLIB_ZFUIKit ZFUIKeyboardState : zfextend ZFObject {
17 ZFOBJECT_DECLARE(ZFUIKeyboardState, ZFObject)
18
20
21public:
27 ZFEVENT(KeyPressedOnUpdate)
28
29public:
34 , ZFMP_IN(ZFUIKeyCode, keyCode)
35 )
40 , ZFMP_IN(zfflags, keyCodeRaw)
41 )
42
43protected:
46};
47
49#endif // #ifndef _ZFI_ZFUIKeyboardState_h_
50
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_zft_zfflags zfflags
used to hold flags, ensured 32 bit, ensured unsigned
Definition ZFCoreTypeDef_CoreType.h:211
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFOBJECT_SINGLETON_DECLARE(AccessTypeName, accessMethodName)
util macro to declare a singleton instance access for ZFObject type
Definition ZFObjectGlobalInstance.h:256
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
key code define
v_ZFUIKeyCode::ZFEnumType ZFUIKeyCode
see v_ZFUIKeyCode
Definition ZFUIKeyCode.h:294
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
virtual zfbool keyPressedRaw(zfflags keyCodeRaw)
true is key is pressed
static ZFUIKeyboardState * instance()
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
virtual zfbool keyPressed(ZFUIKeyCode keyCode)
true is key is pressed