You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
449 B
26 lines
449 B
/* $Id: keybinput.h,v 1.5 2004/04/03 13:55:29 stpohle Exp $ */
|
|
|
|
#ifndef _KEYBINPUT_H_
|
|
#define _KEYBINPUT_H_
|
|
|
|
enum _keybinputtype {
|
|
KEYBI_text = 0,
|
|
KEYBI_int,
|
|
KEYBI_float
|
|
};
|
|
|
|
struct __keybinput {
|
|
char text[255];
|
|
short int curpos;
|
|
short int len;
|
|
char changed;
|
|
int type;
|
|
int maxlen;
|
|
} typedef _keybinput;
|
|
|
|
|
|
extern void keybinput_new (_keybinput *ki, int type, int maxlen);
|
|
extern int keybinput_loop (_keybinput *ki, SDL_Event *event);
|
|
|
|
#endif
|