source: abuse/trunk/src/sdl2port/setup.h @ 731

Last change on this file since 731 was 731, checked in by jjsimpso, 8 years ago

sdlport: Add support for SDL2, inculding the game controller API. Configure
script will check for SDL2 and use it if present, otherwise it will fall
back to SDL v1. Some old SDL v1 features not implemented yet on SDL2, such
as saving screenshots.

core: Small change for SDL2 game controller API to disable the game
controller in the save/load game menu.

Summary of game controller API changes:

  • Enable with -gamepad
  • Tested with PS3 dualshock 3.
  • D-pad moves, right analog controls aiming
  • X: change weapon, []: jump, R1: fire, L1: special ability, /\:use/activate
  • All menu navigation requires the mouse, which is disabled during normal game play.
File size: 779 bytes
Line 
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 _SETUP_H_
12#define _SETUP_H_
13
14struct flags_struct
15{
16    short fullscreen;
17    short doublebuf;
18    short mono;
19    short nosound;
20    short grabmouse;
21    short nosdlparachute;
22    short xres;
23    short yres;
24    short overlay;
25    short gl;
26    int antialias;
27    int gamepad;
28};
29
30struct keys_struct
31{
32    int left;
33    int right;
34    int up;
35    int down;
36    int b1;
37    int b2;
38    int b3;
39    int b4;
40};
41
42#endif // _SETUP_H_
Note: See TracBrowser for help on using the repository browser.