ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFUIKeyboardState.h File Reference

protocol for ZFUIKeyboardState More...

Go to the source code of this file.

Classes

class  ZFPInterface_ZFUIKeyboardState
 protocol for ZFUIKeyboardState More...
 

Functions

void ZFUIKeyboardStateBuiltinImplRegister (void)
 register the builtin impl for ZFUIKeyboardState
 
void ZFUIKeyboardStateBuiltinImplUnregister (void)
 see ZFUIKeyboardStateBuiltinImplRegister
 
void ZFUIKeyboardStateBuiltinImplNotifyKeyEvent (ZFUIKeyEvent *event)
 see ZFUIKeyboardStateBuiltinImplRegister
 

Detailed Description

protocol for ZFUIKeyboardState

Function Documentation

◆ ZFUIKeyboardStateBuiltinImplRegister()

void ZFUIKeyboardStateBuiltinImplRegister ( void )
extern

register the builtin impl for ZFUIKeyboardState

register an observer on ZFUIView::E_ViewOnEvent (as level ZFLevelZFFrameworkEssential) to achieve default impl for ZFUIKeyboardState
if your impl require additional keyboard state, use ZFUIKeyboardStateBuiltinImplNotifyKeyEvent to manually update the keyboard state

◆ ZFUIKeyboardStateBuiltinImplNotifyKeyEvent()

void ZFUIKeyboardStateBuiltinImplNotifyKeyEvent ( ZFUIKeyEvent * event)
extern

see ZFUIKeyboardStateBuiltinImplRegister

if your keyboard event won't be logged by ZFUIView::E_ViewOnEvent, you may manually use this method to update the key state