File: keybinput.h

package info (click to toggle)
bomberclone 0.11.5-1sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,608 kB
  • ctags: 1,437
  • sloc: ansic: 13,356; sh: 3,292; makefile: 183
file content (27 lines) | stat: -rw-r--r-- 488 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* $Id: keybinput.h,v 1.6 2004/05/25 22:22:27 stpohle Exp $ */

#ifndef _KEYBINPUT_H_
#define _KEYBINPUT_H_

#define KEYBI_LINE_LEN 255

enum _keybinputtype {
	KEYBI_text = 0,
	KEYBI_int,
	KEYBI_float
};

struct __keybinput {
	char text[KEYBI_LINE_LEN];
	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