1 /* 2 * Abuse - dark 2D side-scrolling platform game 3 * Copyright (c) 1995 Crack dot Com 4 * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> 5 * 6 * This software was released into the Public Domain. As with most public 7 * domain software, no warranty is made or implied by Crack dot Com, by 8 * Jonathan Clark, or by Sam Hocevar. 9 */ 10 11 #ifndef __CONFIG_HPP_ 12 #define __CONFIG_HPP_ 13 14 enum { HIGH_DETAIL, 15 MEDIUM_DETAIL, 16 LOW_DETAIL, 17 POOR_DETAIL }; 18 19 20 void key_bindings(int player, int &left, int &right, int &up, int &down, int &b1, int &b2, int &b3, int &b4); 21 void get_key_bindings(); 22 void get_movement(int player, int &x, int &y, int &b1, int &b2, int &b3, int &b4); 23 void config_cleanup(); // free any memory allocated 24 int get_keycode(char const *str); // -1 means not a valid key code 25 26 #endif 27