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

« back to all changes in this revision

Viewing changes to src/haptic/linux/SDL_syshaptic.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:
100
100
    EV_TEST(FF_CONSTANT, SDL_HAPTIC_CONSTANT);
101
101
    EV_TEST(FF_SINE, SDL_HAPTIC_SINE);
102
102
    /* !!! FIXME: put this back when we have more bits in 2.1 */
103
 
    /*EV_TEST(FF_SQUARE, SDL_HAPTIC_SQUARE);*/
 
103
    /* EV_TEST(FF_SQUARE, SDL_HAPTIC_SQUARE); */
104
104
    EV_TEST(FF_TRIANGLE, SDL_HAPTIC_TRIANGLE);
105
105
    EV_TEST(FF_SAW_UP, SDL_HAPTIC_SAWTOOTHUP);
106
106
    EV_TEST(FF_SAW_DOWN, SDL_HAPTIC_SAWTOOTHDOWN);
368
368
 
369
369
 
370
370
/*
371
 
 * Checks to see if the haptic device and joystick and in reality the same.
 
371
 * Checks to see if the haptic device and joystick are in reality the same.
372
372
 */
373
373
int
374
374
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
600
600
 
601
601
    case SDL_HAPTIC_SINE:
602
602
    /* !!! FIXME: put this back when we have more bits in 2.1 */
603
 
    /*case SDL_HAPTIC_SQUARE:*/
 
603
    /* case SDL_HAPTIC_SQUARE: */
604
604
    case SDL_HAPTIC_TRIANGLE:
605
605
    case SDL_HAPTIC_SAWTOOTHUP:
606
606
    case SDL_HAPTIC_SAWTOOTHDOWN:
625
625
        if (periodic->type == SDL_HAPTIC_SINE)
626
626
            dest->u.periodic.waveform = FF_SINE;
627
627
        /* !!! FIXME: put this back when we have more bits in 2.1 */
628
 
        /*else if (periodic->type == SDL_HAPTIC_SQUARE)
629
 
            dest->u.periodic.waveform = FF_SQUARE;*/
 
628
        /* else if (periodic->type == SDL_HAPTIC_SQUARE)
 
629
            dest->u.periodic.waveform = FF_SQUARE; */
630
630
        else if (periodic->type == SDL_HAPTIC_TRIANGLE)
631
631
            dest->u.periodic.waveform = FF_TRIANGLE;
632
632
        else if (periodic->type == SDL_HAPTIC_SAWTOOTHUP)