File: keyboard.h

package info (click to toggle)
invaders 1.0.0-19
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 324 kB
  • sloc: ansic: 2,231; sh: 56; asm: 28; makefile: 17
file content (28 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (6)
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
28
#ifndef __KEYBOARD_H
#define __KEYBOARD_H

#include "types.h"

/*

ESC     @
LEFT    <
RIGHT   >
UP      ^
DOWN    v
LSHIFT  l
RSHIFT  r
ENTER   e
F1-F10  0123456789
SPACE   ' '
NOTHING x

only marks will be returned, releases ignored.

*/

void key_decode(uint8 *key, bool *pressed);
void key_polling();
void key_initialize();

#endif