mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-25 19:54:58 +02:00
The Apple TV remote is currently exposed as a joystick with its touch surface treated as two axes. Key presses are also generated when its buttons and touch surface are used. A new hint has been added to help deal with deciding whether to background the app when the remote's menu button is pressed: SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS.
18 lines
339 B
C
18 lines
339 B
C
/*
|
|
* common.h
|
|
* written by Holmes Futrell
|
|
* use however you want
|
|
*/
|
|
|
|
#if __TVOS__
|
|
#define SCREEN_WIDTH 1920
|
|
#define SCREEN_HEIGHT 1080
|
|
#else
|
|
#define SCREEN_WIDTH 320
|
|
#define SCREEN_HEIGHT 480
|
|
#endif
|
|
|
|
extern int randomInt(int min, int max);
|
|
extern float randomFloat(float min, float max);
|
|
extern void fatalError(const char *string);
|