Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htkeyb.cc File Reference

#include "htkeyb.h"
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Classes

struct  ht_key_keycode

Defines

#define WIN32_LEAN_AND_MEAN
#define HT_VK   0x300
#define HT_VK_ALT   (0x1000)
#define HT_VK_SHIFT   (0x2000)
#define HT_VK_CTRL   (0x3000)

Functions

bool ht_keypressed ()
int ht_key_meta (bool shift, bool alt)
int ht_raw_getkey ()
ht_key ht_getkey ()
bool init_keyb ()
void done_keyb ()

Variables

HANDLE input_handle
INPUT_RECORD key_event_record
bool key_pending = false
bool k_shift_state = false
bool k_ctrl_state = false
bool k_alt_state = false
ht_key_keycode ht_win32_key_defs []


Define Documentation

#define HT_VK   0x300
 

Definition at line 47 of file win32/htkeyb.cc.

Referenced by ht_raw_getkey().

#define HT_VK_ALT   (0x1000)
 

Definition at line 48 of file win32/htkeyb.cc.

Referenced by ht_key_meta().

#define HT_VK_CTRL   (0x3000)
 

Definition at line 50 of file win32/htkeyb.cc.

Referenced by ht_key_meta().

#define HT_VK_SHIFT   (0x2000)
 

Definition at line 49 of file win32/htkeyb.cc.

Referenced by ht_key_meta().

#define WIN32_LEAN_AND_MEAN
 

Definition at line 23 of file win32/htkeyb.cc.


Function Documentation

void done_keyb  ) 
 

Definition at line 338 of file win32/htkeyb.cc.

ht_key ht_getkey  ) 
 

Definition at line 309 of file win32/htkeyb.cc.

References ht_key, ht_raw_getkey(), ht_rawkey2key(), K_INVALID, and UINT.

int ht_key_meta bool  shift,
bool  alt
 

Definition at line 265 of file win32/htkeyb.cc.

References HT_VK_ALT, HT_VK_CTRL, HT_VK_SHIFT, and key_event_record.

Referenced by ht_raw_getkey().

bool ht_keypressed  ) 
 

Definition at line 240 of file win32/htkeyb.cc.

References input_handle, k_alt_state, k_ctrl_state, key_event_record, and key_pending.

int ht_raw_getkey  ) 
 

Definition at line 272 of file win32/htkeyb.cc.

References ht_key_meta(), ht_keypressed(), ht_shift_pressed(), HT_VK, k_alt_state, k_ctrl_state, k_shift_state, key_event_record, key_pending, and SHIFT_KEY.

bool init_keyb  ) 
 

Definition at line 317 of file win32/htkeyb.cc.

References ht_dj_key_defs, ht_key, ht_set_key(), ht_win32_key_defs, input_handle, K_COUNT, K_INVALID, ht_key_keycode::key, and UINT.


Variable Documentation

ht_key_keycode ht_win32_key_defs[]
 

Definition at line 52 of file win32/htkeyb.cc.

Referenced by init_keyb().

HANDLE input_handle
 

Definition at line 29 of file win32/htkeyb.cc.

Referenced by ht_keypressed(), and init_keyb().

bool k_alt_state = false
 

Definition at line 34 of file win32/htkeyb.cc.

Referenced by ht_keypressed(), and ht_raw_getkey().

bool k_ctrl_state = false
 

Definition at line 33 of file win32/htkeyb.cc.

Referenced by ht_keypressed(), and ht_raw_getkey().

bool k_shift_state = false
 

Definition at line 32 of file win32/htkeyb.cc.

Referenced by ht_raw_getkey().

INPUT_RECORD key_event_record
 

Definition at line 30 of file win32/htkeyb.cc.

Referenced by ht_key_meta(), ht_keypressed(), and ht_raw_getkey().

bool key_pending = false
 

Definition at line 31 of file win32/htkeyb.cc.

Referenced by ht_keypressed(), and ht_raw_getkey().


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5