src/video/uikit/SDL_uikitviewcontroller.m
changeset 11284 3db78361e751
parent 11147 5b2841f73a33
child 11327 770196e01af1
equal deleted inserted replaced
11283:4276937a9792 11284:3db78361e751
    38 #if SDL_IPHONE_KEYBOARD
    38 #if SDL_IPHONE_KEYBOARD
    39 #include "keyinfotable.h"
    39 #include "keyinfotable.h"
    40 #endif
    40 #endif
    41 
    41 
    42 #if TARGET_OS_TV
    42 #if TARGET_OS_TV
    43 static void
    43 static void SDLCALL
    44 SDL_AppleTVControllerUIHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
    44 SDL_AppleTVControllerUIHintChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
    45 {
    45 {
    46     @autoreleasepool {
    46     @autoreleasepool {
    47         SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
    47         SDL_uikitviewcontroller *viewcontroller = (__bridge SDL_uikitviewcontroller *) userdata;
    48         viewcontroller.controllerUserInteractionEnabled = hint && (*hint != '0');
    48         viewcontroller.controllerUserInteractionEnabled = hint && (*hint != '0');