]> git.ozlabs.org Git - ponghero.git/commitdiff
Now using a real projector
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jan 2008 20:28:11 +0000 (07:28 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jan 2008 20:28:11 +0000 (07:28 +1100)
prpong.c

index cd5a5a66826eae3092d4adeef82dcc5ed9243c7b..36b297e600d02c3c8c774b922d28a64e8d01e079 100644 (file)
--- a/prpong.c
+++ b/prpong.c
@@ -833,12 +833,12 @@ int main(int argc, char *argv[])
 
                if (ir->valid) {
                        /* Give it some slack for missing one or two... */
-                       if (time_since_last_ir <= 3) {
+                       if (time_since_last_ir <= 5) {
                                struct line_segment *n = malloc(sizeof(*n));
                                /* Wiimote coordinates are backwards for us. */
-                               n->start.x = MAX_X - last_ir.pos[0];
+                               n->start.x = last_ir.pos[0];
                                n->start.y = MAX_Y - last_ir.pos[1];
-                               n->end.x = MAX_X - ir->pos[0];
+                               n->end.x = ir->pos[0];
                                n->end.y = MAX_Y - ir->pos[1];
                                n->ignore = false;
                                timeradd(&now, &line_life, &n->expires);