~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/video/directfb/SDL_DirectFB_events.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
        SDL_Mouse *mouse = SDL_GetMouse(index);
133
133
        mouse->x = mouse->last_x = x;
134
134
        mouse->y = mouse->last_y = y;
135
 
        /*SDL_SendMouseMotion(devdata->mouse_id[index], 0, x, y, 0);*/
 
135
        /* SDL_SendMouseMotion(devdata->mouse_id[index], 0, x, y, 0); */
136
136
    }
137
137
#endif
138
138
}
233
233
        case DWET_KEYDOWN:
234
234
            if (!devdata->use_linux_input) {
235
235
                DirectFB_TranslateKey(_this, evt, &keysym, &unicode);
236
 
                /*printf("Scancode %d  %d %d\n", keysym.scancode, evt->key_code, evt->key_id);*/
 
236
                /* printf("Scancode %d  %d %d\n", keysym.scancode, evt->key_code, evt->key_id); */
237
237
                SDL_SendKeyboardKey_ex(0, SDL_PRESSED, keysym.scancode);
238
238
                if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
239
239
                    SDL_zero(text);
369
369
        case DIET_KEYPRESS:
370
370
            kbd_idx = KbdIndex(_this, ievt->device_id);
371
371
            DirectFB_TranslateKeyInputEvent(_this, ievt, &keysym, &unicode);
372
 
            /*printf("Scancode %d  %d %d\n", keysym.scancode, evt->key_code, evt->key_id); */
 
372
            /* printf("Scancode %d  %d %d\n", keysym.scancode, evt->key_code, evt->key_id); */
373
373
            SDL_SendKeyboardKey_ex(kbd_idx, SDL_PRESSED, keysym.scancode);
374
374
            if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
375
375
                SDL_zero(text);
742
742
void
743
743
DirectFB_QuitKeyboard(_THIS)
744
744
{
745
 
    /*SDL_DFB_DEVICEDATA(_this); */
 
745
    /* SDL_DFB_DEVICEDATA(_this); */
746
746
 
747
747
    SDL_KeyboardQuit();
748
748