[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-cvs
Subject: [Flightgear-cvslogs] CVS: FlightGear/src/Input input.cxx,1.35,1.36
From: Erik Hofman <ehofman () flightgear ! org>
Date: 2003-12-28 17:42:28
[Download RAW message or body]
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Input
In directory baron:/tmp/cvs-serv24871
Modified Files:
input.cxx
Log Message:
Make sure the mouse mode can be overriden by a commandline option
Index: input.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Input/input.cxx,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** input.cxx 22 Dec 2003 19:18:22 -0000 1.35
--- input.cxx 28 Dec 2003 17:42:26 -0000 1.36
***************
*** 617,622 ****
char buf[64];
sprintf(buf, "/devices/status/mice/mouse[%d]/mode", i);
! m.mode_node = fgGetNode(buf, true);
! m.mode_node->setIntValue(0);
for (j = 0; j < MAX_MOUSE_BUTTONS; j++) {
sprintf(buf, "/devices/status/mice/mouse[%d]/button[%d]", i, j);
--- 617,625 ----
char buf[64];
sprintf(buf, "/devices/status/mice/mouse[%d]/mode", i);
! m.mode_node = fgGetNode(buf);
! if (m.mode_node == NULL) {
! m.mode_node = fgGetNode(buf, true);
! m.mode_node->setIntValue(0);
! }
for (j = 0; j < MAX_MOUSE_BUTTONS; j++) {
sprintf(buf, "/devices/status/mice/mouse[%d]/button[%d]", i, j);
_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic