summaryrefslogtreecommitdiff
path: root/src/sys/macosx
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-05-10 21:51:09 -0700
committerVito Caputo <vcaputo@pengaru.com>2019-05-10 21:51:09 -0700
commitb030bf671d4d40ba1fd32c38603999d113b4f6d4 (patch)
tree3fbf8d04a7268bb0e69afcb194d1839781fca532 /src/sys/macosx
parentf3ad27b06fb0cb884bdf340785f44286e1009b58 (diff)
*: 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.
Diffstat (limited to 'src/sys/macosx')
-rw-r--r--src/sys/macosx/macosx-sdlmain.m1
-rw-r--r--src/sys/macosx/osdefs.c25
2 files changed, 0 insertions, 26 deletions
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 <SDL.h> /* 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;
-}
-
© All Rights Reserved