pal_utils.c 631 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "main.h"
  2. static int input_event_filter(const SDL_Event *lpEvent, PALINPUTSTATE *state)
  3. {
  4. switch (lpEvent->type)
  5. {
  6. case SDLK_SPACE:
  7. state->dwKeyPress = kKeyMenu;
  8. return 1;
  9. case SDLK_LCTRL:
  10. state->dwKeyPress = kKeySearch;
  11. return 1;
  12. }
  13. return 0;
  14. }
  15. BOOL
  16. UTIL_GetScreenSize(
  17. DWORD *pdwScreenWidth,
  18. DWORD *pdwScreenHeight
  19. )
  20. {
  21. return FALSE;
  22. }
  23. BOOL
  24. UTIL_IsAbsolutePath(
  25. LPCSTR lpszFileName
  26. )
  27. {
  28. return FALSE;
  29. }
  30. INT
  31. UTIL_Platform_Init(
  32. int argc,
  33. char* argv[]
  34. )
  35. {
  36. PAL_RegisterInputFilter(NULL, input_event_filter, NULL);
  37. gConfig.fLaunchSetting = FALSE;
  38. return 0;
  39. }
  40. VOID
  41. UTIL_Platform_Quit(
  42. VOID
  43. )
  44. {
  45. }