src/video/uikit/SDL_uikitview.m
changeset 3685 64ce267332c6
parent 2940 b93965a16fe0
child 4465 3e69e077cb95
child 4660 b15e7017409b
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -272,9 +272,8 @@
     1.4  /* iPhone keyboard addition functions */
     1.5  #if SDL_IPHONE_KEYBOARD
     1.6  
     1.7 -int SDL_iPhoneKeyboardShow(SDL_WindowID windowID) {
     1.8 +int SDL_iPhoneKeyboardShow(SDL_Window * window) {
     1.9  	
    1.10 -	SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.11  	SDL_WindowData *data;
    1.12  	SDL_uikitview *view;
    1.13  	
    1.14 @@ -296,9 +295,8 @@
    1.15  	}
    1.16  }
    1.17  
    1.18 -int SDL_iPhoneKeyboardHide(SDL_WindowID windowID) {
    1.19 +int SDL_iPhoneKeyboardHide(SDL_Window * window) {
    1.20  	
    1.21 -	SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.22  	SDL_WindowData *data;
    1.23  	SDL_uikitview *view;
    1.24  	
    1.25 @@ -320,9 +318,8 @@
    1.26  	}
    1.27  }
    1.28  
    1.29 -SDL_bool SDL_iPhoneKeyboardIsShown(SDL_WindowID windowID) {
    1.30 +SDL_bool SDL_iPhoneKeyboardIsShown(SDL_Window * window) {
    1.31  	
    1.32 -	SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.33  	SDL_WindowData *data;
    1.34  	SDL_uikitview *view;
    1.35  	
    1.36 @@ -343,9 +340,8 @@
    1.37  	}
    1.38  }
    1.39  
    1.40 -int SDL_iPhoneKeyboardToggle(SDL_WindowID windowID) {
    1.41 +int SDL_iPhoneKeyboardToggle(SDL_Window * window) {
    1.42  	
    1.43 -	SDL_Window *window = SDL_GetWindowFromID(windowID);
    1.44  	SDL_WindowData *data;
    1.45  	SDL_uikitview *view;
    1.46  	
    1.47 @@ -362,11 +358,11 @@
    1.48  		return -1;
    1.49  	}
    1.50  	else {
    1.51 -		if (SDL_iPhoneKeyboardIsShown(windowID)) {
    1.52 -			SDL_iPhoneKeyboardHide(windowID);
    1.53 +		if (SDL_iPhoneKeyboardIsShown(window)) {
    1.54 +			SDL_iPhoneKeyboardHide(window);
    1.55  		}
    1.56  		else {
    1.57 -			SDL_iPhoneKeyboardShow(windowID);
    1.58 +			SDL_iPhoneKeyboardShow(window);
    1.59  		}
    1.60  		return 0;
    1.61  	}
    1.62 @@ -376,21 +372,21 @@
    1.63  
    1.64  /* stubs, used if compiled without keyboard support */
    1.65  
    1.66 -int SDL_iPhoneKeyboardShow(SDL_WindowID windowID) {
    1.67 +int SDL_iPhoneKeyboardShow(SDL_Window * window) {
    1.68  	SDL_SetError("Not compiled with keyboard support");
    1.69  	return -1;
    1.70  }
    1.71  
    1.72 -int SDL_iPhoneKeyboardHide(SDL_WindowID windowID) {
    1.73 +int SDL_iPhoneKeyboardHide(SDL_Window * window) {
    1.74  	SDL_SetError("Not compiled with keyboard support");
    1.75  	return -1;
    1.76  }
    1.77  
    1.78 -SDL_bool SDL_iPhoneKeyboardIsShown(SDL_WindowID windowID) {
    1.79 +SDL_bool SDL_iPhoneKeyboardIsShown(SDL_Window * window) {
    1.80  	return 0;
    1.81  }
    1.82  
    1.83 -int SDL_iPhoneKeyboardToggle(SDL_WindowID windowID) {
    1.84 +int SDL_iPhoneKeyboardToggle(SDL_Window * window) {
    1.85  	SDL_SetError("Not compiled with keyboard support");
    1.86  	return -1;
    1.87  }