SwKeybBehaviour

From SWWorkshop

Jump to: navigation, search

It's responsible to notify keyTyped. In textbox, console, etc.. we need to listen keyboard events and convert to Unicode. This class gives you typed char. So you can easily write your textbox or console app..

typedef struct _swKeybBehaviourListener{
	void (*typed)(char c);
	void (*pressed)(swKeyEnum key);
	void (*released)(swKeyEnum key);
}swKeybBehaviourListener;
 
void  swKeybBehaviourSetTypedSleepTime(float dTime);
void  swKeybBehaviourAdd(swKeybBehaviourListener *listener);
void  swKeybBehaviourDel(swKeybBehaviourListener *listener);
void  swKeybBehaviourExecute(swKeyboardState *keybState);
Personal tools