pal_utils.c 654 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include "main.h"
  2. static void init_filter()
  3. {
  4. SDL_N3DSKeyBind(KEY_A, SDLK_RETURN);
  5. SDL_N3DSKeyBind(KEY_B, SDLK_ESCAPE);
  6. SDL_N3DSKeyBind(KEY_CPAD_UP, SDLK_UP);
  7. SDL_N3DSKeyBind(KEY_CPAD_DOWN, SDLK_DOWN);
  8. SDL_N3DSKeyBind(KEY_CPAD_LEFT, SDLK_LEFT);
  9. SDL_N3DSKeyBind(KEY_CPAD_RIGHT, SDLK_RIGHT);
  10. }
  11. BOOL
  12. UTIL_GetScreenSize(
  13. DWORD *pdwScreenWidth,
  14. DWORD *pdwScreenHeight
  15. )
  16. {
  17. return FALSE;
  18. }
  19. BOOL
  20. UTIL_IsAbsolutePath(
  21. LPCSTR lpszFileName
  22. )
  23. {
  24. return FALSE;
  25. }
  26. INT
  27. UTIL_Platform_Init(
  28. int argc,
  29. char* argv[]
  30. )
  31. {
  32. PAL_RegisterInputFilter(init_filter, NULL, NULL);
  33. gConfig.fLaunchSetting = FALSE;
  34. return 0;
  35. }
  36. VOID
  37. UTIL_Platform_Quit(
  38. VOID
  39. )
  40. {
  41. }