X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2Fdemo.c;h=2ff25a749a4dfe146fb63d4c41d28d14847c4912;hp=072b6cead434c16ea9cd80f583871b5b01e459a7;hb=00a81988c5c6c91997f2f9346ac94858622490bd;hpb=40cce6588b2c4e15b46f0f73351d6f3fffb00d90 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;