win_keytyped_t Struct Reference

Event data for WIN_KEY_TYPED events. More...

#include <winkeys.h>


Data Fields

unsigned keycode: 8
 The keycode for the key that was typed.
char ascii
 The ASCII equivalent of the key that was typed.
unsigned lshift: 2
 State of the left shift key.
unsigned rshift: 2
 State of the right shift key.
unsigned alpha: 2
 State of the right shift key.


Detailed Description

Event data for WIN_KEY_TYPED events.

This data structure contains information about a key that was typed.

Definition at line 175 of file winkeys.h.


Field Documentation

unsigned win_keytyped_t::keycode

The keycode for the key that was typed.

This code will match one of the key code constants defined in hpheyb49.h of the form KB_XXX.

Definition at line 183 of file winkeys.h.

char win_keytyped_t::ascii

The ASCII equivalent of the key that was typed.

If the key maps to an ASCII character, this field provides the ASCII code of the character represented by this key. If the key does not have an equivalent ASCII character, this field is set to NUL (' ').

Definition at line 192 of file winkeys.h.

unsigned win_keytyped_t::lshift

State of the left shift key.

This field represents the state of the left shift key when this key was typed. It is set to one of WIN_KEYSTATE_ON, WIN_KEYSTATE_OFF, or WIN_KEYSTATE_PRESSED.

Definition at line 201 of file winkeys.h.

unsigned win_keytyped_t::rshift

State of the right shift key.

This field represents the state of the right shift key when this key was typed. It is set to one of WIN_KEYSTATE_ON, WIN_KEYSTATE_OFF, or WIN_KEYSTATE_PRESSED.

Definition at line 210 of file winkeys.h.

unsigned win_keytyped_t::alpha

State of the right shift key.

This field represents the state of the alpha key when this key was typed. It is set to one of WIN_KEYSTATE_ON, WIN_KEYSTATE_OFF, WIN_KEYSTATE_LOCK, or WIN_KEYSTATE_PRESSED.

Definition at line 219 of file winkeys.h.


The documentation for this struct was generated from the following file:
Generated on Fri Feb 16 16:43:17 2007 for HPGCCWindows by  doxygen 1.5.0