From b030bf671d4d40ba1fd32c38603999d113b4f6d4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 10 May 2019 21:51:09 -0700 Subject: *: drop vestigial cruft breaking win32 builds Just some unused schismtracker junk, there really shouldn't be any SDL dependency at all but I haven't gone through and exhaustively cleared all that out. --- src/sys/macosx/macosx-sdlmain.m | 1 - src/sys/macosx/osdefs.c | 25 ------------------------- 2 files changed, 26 deletions(-) (limited to 'src/sys/macosx') diff --git a/src/sys/macosx/macosx-sdlmain.m b/src/sys/macosx/macosx-sdlmain.m index df7f440..33b065e 100644 --- a/src/sys/macosx/macosx-sdlmain.m +++ b/src/sys/macosx/macosx-sdlmain.m @@ -40,7 +40,6 @@ pruned up some here :) -mrsb extern char *initial_song; #include /* necessary here */ -#include "event.h" #include "osdefs.h" #define Cursor AppleCursor diff --git a/src/sys/macosx/osdefs.c b/src/sys/macosx/osdefs.c index 57fd832..8a07e36 100644 --- a/src/sys/macosx/osdefs.c +++ b/src/sys/macosx/osdefs.c @@ -23,32 +23,7 @@ #include "headers.h" #include "osdefs.h" -#include "event.h" #include "song.h" const char *osname = "macosx"; - -int macosx_sdlevent(SDL_Event *event) -{ - if (event->type == SDL_KEYDOWN || event->type == SDL_KEYUP) { - if (event->key.keysym.sym == 0) { - switch (event->key.keysym.scancode) { - case 106: // mac F16 key - event->key.keysym.sym = SDLK_PRINT; - event->key.keysym.mod = KMOD_CTRL; - return 1; - case 234: // XXX what key is this? - if (event->type == SDL_KEYDOWN) - song_set_current_order(song_get_current_order() - 1); - return 0; - case 233: // XXX what key is this? - if (event->type == SDL_KEYUP) - song_set_current_order(song_get_current_order() + 1); - return 0; - }; - } - } - return 1; -} - -- cgit v1.2.3