summaryrefslogtreecommitdiff
path: root/test/testintersections.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2010-05-09 20:47:22 -0700
committerSam Lantinga <slouken@libsdl.org>2010-05-09 20:47:22 -0700
commit338f95eb06f26846ab1a8a9d6e9a687564137a5e (patch)
treee22d3571f1e0db6a11243bd30df092a178a89893 /test/testintersections.c
parentd12afdaedbe72a4058c63c526a1f4ff80b2594ae (diff)
Removed multi-mouse / multi-keyboard support in anticipation of a real multi-mouse and multi-touch API.
Plus, this lets me start implementing cursor support.
Diffstat (limited to 'test/testintersections.c')
-rw-r--r--test/testintersections.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/test/testintersections.c b/test/testintersections.c
index 7327e3a0..9eed373e 100644
--- a/test/testintersections.c
+++ b/test/testintersections.c
@@ -288,20 +288,16 @@ main(int argc, char *argv[])
CommonEvent(state, &event, &done);
switch (event.type) {
case SDL_MOUSEBUTTONDOWN:
- if (event.button.which == 0) {
- mouse_begin_x = event.button.x;
- mouse_begin_y = event.button.y;
- }
+ mouse_begin_x = event.button.x;
+ mouse_begin_y = event.button.y;
break;
case SDL_MOUSEBUTTONUP:
- if (event.button.which == 0) {
- if (event.button.button == 3)
- add_line(mouse_begin_x, mouse_begin_y, event.button.x,
- event.button.y);
- if (event.button.button == 1)
- add_rect(mouse_begin_x, mouse_begin_y, event.button.x,
- event.button.y);
- }
+ if (event.button.button == 3)
+ add_line(mouse_begin_x, mouse_begin_y, event.button.x,
+ event.button.y);
+ if (event.button.button == 1)
+ add_rect(mouse_begin_x, mouse_begin_y, event.button.x,
+ event.button.y);
break;
case SDL_KEYDOWN:
switch (event.key.keysym.sym) {