Removed obsolete test program. Ryan may resurrect it when the new multi-mouse code is implemented.
authorSam Lantinga <slouken@libsdl.org>
Mon, 05 Jul 2010 22:45:45 -0700
changeset 4483539f3eca8798
parent 4482 8058f5ab4a75
child 4484 9322f7db8603
Removed obsolete test program. Ryan may resurrect it when the new multi-mouse code is implemented.
test/Makefile.in
test/testmmousetablet.c
     1.1 --- a/test/Makefile.in	Mon Jul 05 22:45:15 2010 -0700
     1.2 +++ b/test/Makefile.in	Mon Jul 05 22:45:45 2010 -0700
     1.3 @@ -7,7 +7,7 @@
     1.4  CFLAGS  = @CFLAGS@
     1.5  LIBS	= @LIBS@
     1.6  
     1.7 -TARGETS = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testatomic$(EXE) testaudioinfo$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcursor$(EXE) testdraw2$(EXE) testdyngles$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testfill$(EXE) testgamma$(EXE) testgl2$(EXE) testgles$(EXE) testgl$(EXE) testhaptic$(EXE) testhread$(EXE) testiconv$(EXE) testime$(EXE) testintersections$(EXE) testjoystick$(EXE) testkeys$(EXE) testloadso$(EXE) testlock$(EXE) testmmousetablet$(EXE) testmultiaudio$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testpower$(EXE) testresample$(EXE) testsem$(EXE) testsprite2$(EXE) testsprite$(EXE) testspriteminimal$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm2$(EXE) testwm$(EXE) threadwin$(EXE) torturethread$(EXE)
     1.8 +TARGETS = checkkeys$(EXE) graywin$(EXE) loopwave$(EXE) testalpha$(EXE) testatomic$(EXE) testaudioinfo$(EXE) testbitmap$(EXE) testblitspeed$(EXE) testcursor$(EXE) testdraw2$(EXE) testdyngles$(EXE) testdyngl$(EXE) testerror$(EXE) testfile$(EXE) testfill$(EXE) testgamma$(EXE) testgl2$(EXE) testgles$(EXE) testgl$(EXE) testhaptic$(EXE) testhread$(EXE) testiconv$(EXE) testime$(EXE) testintersections$(EXE) testjoystick$(EXE) testkeys$(EXE) testloadso$(EXE) testlock$(EXE) testmultiaudio$(EXE) testoverlay2$(EXE) testoverlay$(EXE) testpalette$(EXE) testplatform$(EXE) testpower$(EXE) testresample$(EXE) testsem$(EXE) testsprite2$(EXE) testsprite$(EXE) testspriteminimal$(EXE) testtimer$(EXE) testver$(EXE) testvidinfo$(EXE) testwin$(EXE) testwm2$(EXE) testwm$(EXE) threadwin$(EXE) torturethread$(EXE)
     1.9  
    1.10  all: Makefile $(TARGETS)
    1.11  
    1.12 @@ -149,9 +149,6 @@
    1.13  testhaptic$(EXE): $(srcdir)/testhaptic.c
    1.14  	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    1.15  
    1.16 -testmmousetablet$(EXE): $(srcdir)/testmmousetablet.c
    1.17 -	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    1.18 -
    1.19  testatomic$(EXE): $(srcdir)/testatomic.c
    1.20  	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    1.21   
     2.1 --- a/test/testmmousetablet.c	Mon Jul 05 22:45:15 2010 -0700
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,67 +0,0 @@
     2.4 -#include <stdio.h>
     2.5 -#include "SDL.h"
     2.6 -
     2.7 -SDL_Surface *screen;
     2.8 -int quit = 0;
     2.9 -
    2.10 -int
    2.11 -main(int argc, char *argv[])
    2.12 -{
    2.13 -    SDL_Event event;
    2.14 -    int mice;
    2.15 -    int i;
    2.16 -    printf("Initing...\n");
    2.17 -    if (SDL_Init(0) != 0) {
    2.18 -        return 1;
    2.19 -    }
    2.20 -    if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) {
    2.21 -        return 1;
    2.22 -    } else {
    2.23 -        screen = SDL_SetVideoMode(640, 480, 32, SDL_DOUBLEBUF);
    2.24 -    }
    2.25 -    mice = SDL_GetNumMice();
    2.26 -    printf("%d pointing devices found\n", mice);
    2.27 -    for (i = 0; i < mice; ++i) {
    2.28 -        printf("device index: %d name:%s\n", i, SDL_GetMouseName(i));
    2.29 -    }
    2.30 -    while (quit != 1) {
    2.31 -        if (SDL_PollEvent(&event) == 0) {
    2.32 -        } else {
    2.33 -            switch (event.type) {
    2.34 -            case SDL_MOUSEMOTION:
    2.35 -                printf
    2.36 -                    ("Device id: %d x: %d y: %d relx: %d rely: %d pressure: %d\n \
    2.37 -					pressure_max: %d pressure_min: %d current cursor:%d\n",
    2.38 -                     event.motion.which, event.motion.x, event.motion.y, event.motion.xrel, event.motion.yrel,
    2.39 -                     event.motion.pressure, event.motion.pressure_max, event.motion.pressure_min,
    2.40 -                     event.motion.cursor);
    2.41 -                break;
    2.42 -            case SDL_PROXIMITYIN:
    2.43 -                printf("proximity in id: %d x: %d y: %d\n",
    2.44 -                       (int) event.proximity.which, event.proximity.x,
    2.45 -                       event.proximity.y);
    2.46 -                break;
    2.47 -            case SDL_PROXIMITYOUT:
    2.48 -                printf("proximity out id: %d x: %d y: %d\n",
    2.49 -                       (int) event.proximity.which, event.proximity.x,
    2.50 -                       event.proximity.y);
    2.51 -                break;
    2.52 -            case SDL_MOUSEBUTTONDOWN:
    2.53 -                printf("mouse button down id: %d button:%d\n",
    2.54 -                       event.button.which, event.button.button);
    2.55 -                break;
    2.56 -            case SDL_MOUSEBUTTONUP:
    2.57 -                printf("mouse button up id: %d button: %d\n",
    2.58 -                       event.button.which, event.button.button);
    2.59 -                break;
    2.60 -            case SDL_QUIT:
    2.61 -                printf("Quitting\n");
    2.62 -                SDL_QuitSubSystem(SDL_INIT_VIDEO);
    2.63 -                SDL_Quit();
    2.64 -                quit = 1;
    2.65 -                break;
    2.66 -            }
    2.67 -        }
    2.68 -    }
    2.69 -    return 0;
    2.70 -}