Changeset 731 for abuse/trunk/src
- Timestamp:
- Jul 21, 2014, 12:50:29 AM (8 years ago)
- Location:
- abuse/trunk/src
- Files:
-
- 15 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/Makefile.am
r651 r731 1 1 ## Process this file with automake to produce Makefile.in 2 2 3 SUBDIRS = lisp net imlib sdlport3 SUBDIRS = lisp net imlib @SDLPORT_DIR@ 4 4 5 5 bin_PROGRAMS = abuse abuse-tool … … 65 65 $(NULL) 66 66 67 EXTRALIBS = lisp/liblisp.a sdlport/libsdlport.a imlib/libimlib.a net/libnet.a67 EXTRALIBS = lisp/liblisp.a @SDLPORT_DIR@/libsdlport.a imlib/libimlib.a net/libnet.a 68 68 abuse_LDADD = $(EXTRALIBS) 69 69 abuse_DEPENDENCIES = $(EXTRALIBS) … … 75 75 abuse_tool_DEPENDENCIES = $(abuse_tool_LDADD) 76 76 77 INCLUDES = -I$(srcdir) -I $(srcdir)/lisp -I$(srcdir)/imlib \77 INCLUDES = -I$(srcdir) -I $(srcdir)/lisp -I$(srcdir)/imlib \ 78 78 -I$(srcdir)/net $(SDL_CFLAGS) 79 79 80 80 CPPFLAGS = @CPPFLAGS@ -DNO_CHECK 81 -
abuse/trunk/src/imlib/event.h
r682 r731 90 90 } 91 91 92 // To enable/disable game controller 93 // enables switching between mouse and gamepad when entering certain screens 94 // Added for SDL2 game controller support 95 void enable_controller(bool enabled) 96 { 97 controller_enabled = enabled; 98 } 99 92 100 private: 93 101 linked_list m_events; … … 95 103 96 104 image *m_screen; 105 bool controller_enabled; 97 106 98 107 protected: -
abuse/trunk/src/loadgame.cpp
r682 r731 243 243 do 244 244 { 245 // disable game controller during save/load screen so that mouse can be used 246 wm->enable_controller(false); 247 245 248 wm->flush_screen(); 246 249 wm->get_event(ev); … … 259 262 } while (!got_level && !quit); 260 263 264 wm->enable_controller(true); 265 261 266 wm->close_window(l_win); 262 267 wm->close_window(preview);
Note: See TracChangeset
for help on using the changeset viewer.