~vcs-imports/libsdl/trunk

« back to all changes in this revision

Viewing changes to src/video/uikit/SDL_uikitview.m

  • Committer: slouken
  • Date: 2010-01-21 06:21:52 UTC
  • Revision ID: svn-v4:c70aab31-4412-0410-b14c-859654838e24:trunk/SDL:5525
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
/* iPhone keyboard addition functions */
273
273
#if SDL_IPHONE_KEYBOARD
274
274
 
275
 
int SDL_iPhoneKeyboardShow(SDL_WindowID windowID) {
 
275
int SDL_iPhoneKeyboardShow(SDL_Window * window) {
276
276
        
277
 
        SDL_Window *window = SDL_GetWindowFromID(windowID);
278
277
        SDL_WindowData *data;
279
278
        SDL_uikitview *view;
280
279
        
296
295
        }
297
296
}
298
297
 
299
 
int SDL_iPhoneKeyboardHide(SDL_WindowID windowID) {
 
298
int SDL_iPhoneKeyboardHide(SDL_Window * window) {
300
299
        
301
 
        SDL_Window *window = SDL_GetWindowFromID(windowID);
302
300
        SDL_WindowData *data;
303
301
        SDL_uikitview *view;
304
302
        
320
318
        }
321
319
}
322
320
 
323
 
SDL_bool SDL_iPhoneKeyboardIsShown(SDL_WindowID windowID) {
 
321
SDL_bool SDL_iPhoneKeyboardIsShown(SDL_Window * window) {
324
322
        
325
 
        SDL_Window *window = SDL_GetWindowFromID(windowID);
326
323
        SDL_WindowData *data;
327
324
        SDL_uikitview *view;
328
325
        
343
340
        }
344
341
}
345
342
 
346
 
int SDL_iPhoneKeyboardToggle(SDL_WindowID windowID) {
 
343
int SDL_iPhoneKeyboardToggle(SDL_Window * window) {
347
344
        
348
 
        SDL_Window *window = SDL_GetWindowFromID(windowID);
349
345
        SDL_WindowData *data;
350
346
        SDL_uikitview *view;
351
347
        
362
358
                return -1;
363
359
        }
364
360
        else {
365
 
                if (SDL_iPhoneKeyboardIsShown(windowID)) {
366
 
                        SDL_iPhoneKeyboardHide(windowID);
 
361
                if (SDL_iPhoneKeyboardIsShown(window)) {
 
362
                        SDL_iPhoneKeyboardHide(window);
367
363
                }
368
364
                else {
369
 
                        SDL_iPhoneKeyboardShow(windowID);
 
365
                        SDL_iPhoneKeyboardShow(window);
370
366
                }
371
367
                return 0;
372
368
        }
376
372
 
377
373
/* stubs, used if compiled without keyboard support */
378
374
 
379
 
int SDL_iPhoneKeyboardShow(SDL_WindowID windowID) {
380
 
        SDL_SetError("Not compiled with keyboard support");
381
 
        return -1;
382
 
}
383
 
 
384
 
int SDL_iPhoneKeyboardHide(SDL_WindowID windowID) {
385
 
        SDL_SetError("Not compiled with keyboard support");
386
 
        return -1;
387
 
}
388
 
 
389
 
SDL_bool SDL_iPhoneKeyboardIsShown(SDL_WindowID windowID) {
 
375
int SDL_iPhoneKeyboardShow(SDL_Window * window) {
 
376
        SDL_SetError("Not compiled with keyboard support");
 
377
        return -1;
 
378
}
 
379
 
 
380
int SDL_iPhoneKeyboardHide(SDL_Window * window) {
 
381
        SDL_SetError("Not compiled with keyboard support");
 
382
        return -1;
 
383
}
 
384
 
 
385
SDL_bool SDL_iPhoneKeyboardIsShown(SDL_Window * window) {
390
386
        return 0;
391
387
}
392
388
 
393
 
int SDL_iPhoneKeyboardToggle(SDL_WindowID windowID) {
 
389
int SDL_iPhoneKeyboardToggle(SDL_Window * window) {
394
390
        SDL_SetError("Not compiled with keyboard support");
395
391
        return -1;
396
392
}