pal_utils.c 889 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #include "main.h"
  2. #if defined(NDS)
  3. #include <fat.h>
  4. #endif
  5. #if defined(__SYMBIAN32__)
  6. static int input_event_filter(const SDL_Event *lpEvent, PALINPUTSTATE *state)
  7. {
  8. //
  9. // Symbian-specific stuff
  10. //
  11. switch (lpEvent->type)
  12. {
  13. case SDLK_0:
  14. VIDEO_ToggleScaleScreen();
  15. return 1;
  16. case SDLK_1:
  17. AUDIO_DecreaseVolume();
  18. return 1;
  19. case SDLK_3:
  20. AUDIO_IncreaseVolume();
  21. return 1;
  22. }
  23. return 0;
  24. }
  25. #endif
  26. BOOL
  27. UTIL_GetScreenSize(
  28. DWORD *pdwScreenWidth,
  29. DWORD *pdwScreenHeight
  30. )
  31. {
  32. return FALSE;
  33. }
  34. BOOL
  35. UTIL_IsAbsolutePath(
  36. LPCSTR lpszFileName
  37. )
  38. {
  39. return FALSE;
  40. }
  41. INT
  42. UTIL_Platform_Init(
  43. int argc,
  44. char* argv[]
  45. )
  46. {
  47. #if defined(NDS)
  48. fatInitDefault();
  49. #endif
  50. #if defined(__SYMBIAN32__)
  51. PAL_RegisterInputFilter(NULL, input_event_filter, NULL);
  52. #endif
  53. gConfig.fLaunchSetting = FALSE;
  54. return 0;
  55. }
  56. VOID
  57. UTIL_Platform_Quit(
  58. VOID
  59. )
  60. {
  61. #if defined (NDS)
  62. while (1);
  63. #endif
  64. }