-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.h
26 lines (21 loc) · 820 Bytes
/
configuration.h
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
/*
* Abuse - dark 2D side-scrolling platform game
* Copyright (c) 1995 Crack dot Com
* Copyright (c) 2005-2011 Sam Hocevar <[email protected]>
*
* This software was released into the Public Domain. As with most public
* domain software, no warranty is made or implied by Crack dot Com, by
* Jonathan Clark, or by Sam Hocevar.
*/
#ifndef __CONFIG_HPP_
#define __CONFIG_HPP_
enum { HIGH_DETAIL,
MEDIUM_DETAIL,
LOW_DETAIL,
POOR_DETAIL };
void key_bindings(int player, int &left, int &right, int &up, int &down, int &b1, int &b2, int &b3, int &b4);
void get_key_bindings();
void get_movement(int player, int &x, int &y, int &b1, int &b2, int &b3, int &b4);
void config_cleanup(); // free any memory allocated
int get_keycode(char const *str); // -1 means not a valid key code
#endif