Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Originally keyboard support was in the form of a category of the clas…
Browse files Browse the repository at this point in the history
…s SDL_uikitview. It turns out this can cause problems with compilation where the code is not actually included and doesn't fail until dynamic dispatch. This is just awful, so I've moved to the code into the SDL_uikitview class itself.
  • Loading branch information
Holmes Futrell committed Aug 13, 2008
1 parent 9a124f4 commit 1b361b2
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 311 deletions.
47 changes: 0 additions & 47 deletions src/video/uikit/SDL_uikitkeyboard.h

This file was deleted.

263 changes: 0 additions & 263 deletions src/video/uikit/SDL_uikitkeyboard.m

This file was deleted.

14 changes: 14 additions & 0 deletions src/video/uikit/SDL_uikitview.h
Expand Up @@ -42,4 +42,18 @@
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;

#if SDL_IPHONE_KEYBOARD
- (void)showKeyboard;
- (void)hideKeyboard;
- (void)initializeKeyboard;
@property (readonly) BOOL keyboardVisible;
#endif

@end

#if SDL_IPHONE_KEYBOARD
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_WindowID windowID);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_WindowID windowID);
extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_WindowID windowID);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_WindowID windowID);
#endif

0 comments on commit 1b361b2

Please sign in to comment.