Ignore:
Timestamp:
Jul 21, 2014, 12:50:29 AM (4 years ago)
Author:
jjsimpso
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/loadgame.cpp

    r682 r731  
    243243    do
    244244    {
     245        // disable game controller during save/load screen so that mouse can be used
     246        wm->enable_controller(false);
     247       
    245248        wm->flush_screen();
    246249        wm->get_event(ev);
     
    259262    } while (!got_level && !quit);
    260263
     264    wm->enable_controller(true);
     265
    261266    wm->close_window(l_win);
    262267    wm->close_window(preview);
Note: See TracChangeset for help on using the changeset viewer.