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

htkeyb.cc File Reference

#include "config.h"
#include "htkeyb.h"
#include <X11/Xlib.h>

Go to the source code of this file.

Classes

struct  key_keycode

Defines

#define META_KEY(c)   ((c) | 0x80000000)
#define UNMETA_KEY(c)   ((c) & (~0x80000000))
#define SHIFT_KEY(c)   ((c) | 0x40000000)
#define UNSHIFT_KEY(c)   ((c) & (~0x40000000))
#define CTRL_KEY(c)   ((c) | 0x20000000)
#define UNCTRL_KEY(c)   ((c) & (~0x20000000))
#define CTRL_ALPHA_KEY(c)   ((c)-'a'+1)

Functions

void sys_get_driver_desc (char *buf)
ht_key ht_getkey ()
bool ht_keypressed ()
int ht_raw_getkey ()
bool init_keyb ()
void done_keyb ()


Define Documentation

#define CTRL_ALPHA_KEY (  c   )     ((c)-'a'+1)
 

Definition at line 41 of file posix/htkeyb.cc.

#define CTRL_KEY (  c   )     ((c) | 0x20000000)
 

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

Referenced by ht_getkey().

#define META_KEY (  c   )     ((c) | 0x80000000)
 

Definition at line 26 of file posix/htkeyb.cc.

Referenced by ht_getkey(), and ht_raw_getkey().

#define SHIFT_KEY (  c   )     ((c) | 0x40000000)
 

Definition at line 28 of file posix/htkeyb.cc.

#define UNCTRL_KEY (  c   )     ((c) & (~0x20000000))
 

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

Referenced by ht_getkey().

#define UNMETA_KEY (  c   )     ((c) & (~0x80000000))
 

Definition at line 27 of file posix/htkeyb.cc.

Referenced by ht_getkey().

#define UNSHIFT_KEY (  c   )     ((c) & (~0x40000000))
 

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

Referenced by ht_getkey().


Function Documentation

void done_keyb (   ) 
 

Definition at line 329 of file posix/htkeyb.cc.

ht_key ht_getkey (   ) 
 

Definition at line 96 of file posix/htkeyb.cc.

References CTRL_KEY, ht_key, ht_keypressed(), ht_raw_getkey(), ht_rawkey2key(), K_INVALID, META_KEY, SHIFT_KEY, UNCTRL_KEY, UNMETA_KEY, and UNSHIFT_KEY.

bool ht_keypressed (   ) 
 

Definition at line 123 of file posix/htkeyb.cc.

int ht_raw_getkey (   ) 
 

Definition at line 130 of file posix/htkeyb.cc.

References META_KEY.

bool init_keyb (   ) 
 

Definition at line 300 of file posix/htkeyb.cc.

References ht_key, ht_set_key(), K_COUNT, key_keycode::keycode, and UINT.

void sys_get_driver_desc (  char *  buf  ) 
 

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

References buf.


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