X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosrtxon;a=blobdiff_plain;f=src%2Fdemo.c;h=2ff25a749a4dfe146fb63d4c41d28d14847c4912;hp=072b6cead434c16ea9cd80f583871b5b01e459a7;hb=2a30b097337f5adaf8342d2e597acb71569d7e0a;hpb=d7a6d41395a0c357f0c66675fbfe070fd74599d2 diff --git a/src/demo.c b/src/demo.c index 072b6ce..2ff25a7 100644 --- a/src/demo.c +++ b/src/demo.c @@ -211,7 +211,7 @@ void mouse_orbit_update(float *theta, float *phi, float *dist) int dy = mouse_y - prev_my; if(dx || dy) { - if(mouse_bmask & 1) { + if(mouse_bmask & MOUSE_LEFT) { float p = *phi; *theta += dx * 1.0; p += dy * 1.0; @@ -220,7 +220,7 @@ void mouse_orbit_update(float *theta, float *phi, float *dist) if(p > 90) p = 90; *phi = p; } - if(mouse_bmask & 4) { + if(mouse_bmask & MOUSE_RIGHT) { *dist += dy * 0.5; if(*dist < 0) *dist = 0;