Skip to content

Commit 8611241

Browse files
authored
Merge pull request #11 from loganmc10/sdl2
Remove SDL_PumpEvents
2 parents 741f37c + 4bcbae8 commit 8611241

File tree

5 files changed

+3
-25
lines changed

5 files changed

+3
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.so
33
*.o
44
*.swp
5+
/projects/unix/_obj*/

projects/unix/buildwin32.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ UNAME=MINGW32
55
DESTDIR=./dist_win32
66

77
HID_CFLAGS="-I $HIDHOME/hidapi"
8-
HID_LDLIBS="-L $HIDHOME/windows/.libs/ -lhidapi sdl.lib"
8+
HID_LDLIBS="-L $HIDHOME/windows/.libs/ -lhidapi"
99
TARGETS=all
1010
MAKEFILE=Makefile
1111

@@ -14,10 +14,6 @@ if [ $? -ne 0 ]; then
1414
exit 1
1515
fi
1616

17-
# Hack to let this project link without requiring libsdl. Without
18-
# this linking will fail due to a missing symbol (SDL_PumpEvents)
19-
i686-w64-mingw32-dlltool -d sdl.def -l sdl.lib
20-
2117
make -f $MAKEFILE CROSS_COMPILE=i686-w64-mingw32- UNAME=$UNAME HID_CFLAGS="$HID_CFLAGS" HID_LDLIBS="$HID_LDLIBS" $TARGETS V=1
2218
if [ $? -ne 0 ]; then
2319
exit 1

projects/unix/buildwin64.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ UNAME=MINGW64
55
DESTDIR=./dist_win64
66

77
HID_CFLAGS="-I $HIDHOME/hidapi"
8-
HID_LDLIBS="-L $HIDHOME/windows/.libs/ -lhidapi sdl.lib"
8+
HID_LDLIBS="-L $HIDHOME/windows/.libs/ -lhidapi"
99
TARGETS=all
1010
MAKEFILE=Makefile
1111

@@ -14,10 +14,6 @@ if [ $? -ne 0 ]; then
1414
exit 1
1515
fi
1616

17-
# Hack to let this project link without requiring libsdl. Without
18-
# this linking will fail due to a missing symbol (SDL_PumpEvents)
19-
x86_64-w64-mingw32-dlltool -d sdl.def -l sdl.lib
20-
2117
make -f $MAKEFILE CROSS_COMPILE=x86_64-w64-mingw32- UNAME=$UNAME HID_CFLAGS="$HID_CFLAGS" HID_LDLIBS="$HID_LDLIBS" $TARGETS V=1
2218
if [ $? -ne 0 ]; then
2319
exit 1

projects/unix/sdl.def

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/plugin_front.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -293,20 +293,8 @@ EXPORT void CALL ControllerCommand(int Control, unsigned char *Command)
293293
pb_controllerCommand(EMU_2_ADAP_PORT(Control), Command);
294294
}
295295

296-
#if PLUGIN_VERSION >= 0x010002
297-
void SDL_PumpEvents(void);
298-
#endif
299-
300296
EXPORT void CALL GetKeys( int Control, BUTTONS *Keys )
301297
{
302-
/* Since March 23, 2018, the SDL_PumpEvents() is supposed to be called
303-
by the input plugin. Even though this plugin has nothing to do with
304-
SDL, it must now call SDL_PumpEvents. Otherwise non-input events
305-
such as SDL_QUIT (which occur when one tries to close the window)
306-
are never emitted! */
307-
#if PLUGIN_VERSION >= 0x010002
308-
SDL_PumpEvents();
309-
#endif
310298
}
311299

312300
EXPORT void CALL RomClosed(void)

0 commit comments

Comments
 (0)