Ignore:
Timestamp:
Jul 21, 2014, 12:50:29 AM (8 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/Makefile.am

    r651 r731  
    11## Process this file with automake to produce Makefile.in
    22
    3 SUBDIRS = lisp net imlib sdlport
     3SUBDIRS = lisp net imlib @SDLPORT_DIR@
    44
    55bin_PROGRAMS = abuse abuse-tool
     
    6565    $(NULL)
    6666
    67 EXTRALIBS = lisp/liblisp.a sdlport/libsdlport.a imlib/libimlib.a net/libnet.a
     67EXTRALIBS = lisp/liblisp.a @SDLPORT_DIR@/libsdlport.a imlib/libimlib.a net/libnet.a
    6868abuse_LDADD = $(EXTRALIBS)
    6969abuse_DEPENDENCIES = $(EXTRALIBS)
     
    7575abuse_tool_DEPENDENCIES = $(abuse_tool_LDADD)
    7676
    77 INCLUDES = -I$(srcdir) -I$(srcdir)/lisp -I$(srcdir)/imlib \
     77INCLUDES = -I$(srcdir) -I $(srcdir)/lisp -I$(srcdir)/imlib \
    7878           -I$(srcdir)/net $(SDL_CFLAGS)
    7979
    8080CPPFLAGS = @CPPFLAGS@ -DNO_CHECK
    81 
Note: See TracChangeset for help on using the changeset viewer.