home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
thx
/
source
/
theatrix
/
keyfold.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-25
|
336b
|
17 lines
#include "keyfold.h"
void KeystrokeFolder::reset()
{
for (int i=0;i<NUMKEYS;i++)
key[i].reset();
}
void KeystrokeFolder::dispatch(int ascii, int aux, int)
{
int code=(aux<<8)+ascii;
if (aux)
key[aux+AUX_OFFSET].execute_callbacks(code);
else
key[ascii].execute_callbacks(code);
}