From: Dominik R. <ra...@vr...> - 2012-10-04 13:06:52
|
Hi What version of glut are you using? Standard glut does not support mouse wheels, but freeglut does, so youll have to built Vista with freeglut. Regards Dominik -- Dipl.-Inform. Dominik Rausch Virtual Reality Group, RWTH Aachen University Lehrstuhl für Informatik 12 (Hochleistungsrechnen) Rechen- und Kommunikationszentrum Seffenter Weg 23, 52074 Aachen Tel. +49 241 80 29732 <mailto:ra...@vr...> ra...@vr... <http://www.vr.rwth-aachen.de> www.vr.rwth-aachen.de From: Dan...@dl... [mailto:Dan...@dl...] Sent: Thursday, October 04, 2012 1:32 PM To: vis...@li... Cc: Rob...@dl...; Rol...@dl... Subject: [vistavrtoolkit-general] Problems with DFN-Node: Could not fetch movements of mouse scrollwheel on linux Hi all, I am new to VISTA and try to pipe the scrollwheel movements of a normal mouse via the DataFlowNet on Linux inside my programm I am using VISTA 11 on SUSE Linux 11. I use the following interaction.xml file: <module> <nodespace> </nodespace> <graph> <!-- data source... a mouse --> <node name="mouse" type="DriverSensor"> <param name="sensor" value="0" /> <param name="driver" value="MOUSE" /> </node> <node name="flystick_action" type="Action"> <param name="object" value="FlystickActionObject" /> </node> <node name="project_mouse" type="HistoryProject"> <param name="project">POSITION, LEFT_BUTTON, RIGHT_BUTTON, MIDDLE_BUTTON, X_POS, Y_POS, WHEEL_STATE, WHEEL_DIR</param> </node> <node name="conv_wheel_state" type="TypeConvert[int,double]" /> <node name="conv_wheel_dir" type="TypeConvert[int,double]" /> </graph> <edges> <edge fromnode="mouse" tonode="project_mouse" fromport="history" toport="history" /> <edge fromnode="project_mouse" tonode="conv_wheel_state" fromport="WHEEL_STATE" toport="in" /> <edge fromnode="project_mouse" tonode="conv_wheel_dir" fromport="WHEEL_DIR" toport="in" /> <edge fromnode="conv_wheel_state" tonode="flystick_action" fromport="out" toport="button_state_9" /> <edge fromnode="conv_wheel_dir" tonode="flystick_action" fromport="out" toport="button_state_10" />--> </edges> </module> Some parts of the interaction.ini. I hope I choose the interesting parts: [3DMOUSE] ROLE = 3DMOUSE GRAPH = xml/mouse_ray.xml #RELOADTRIGGER = T [MOUSE] TYPE = MOUSE HISTORY = 10 SENSORS = MOUSE_MAIN DEFAULTWINDOW = TRUE [SPACENAVIGATOR] TYPE = SPACENAVIGATOR HISTORY = 10 [MOUSE_MAIN] RAWID = 0 When the mousewheel is turned I receive zeros on button_state_9 and button_state_10. In the source code of VistaMouseDriver.cpp it looks as port "DSCALAR_3" of "project_mouse" would contain the scrollwheel data. Therefore I also tried to send DSCALAR_3 in my program. But it contains the same data as "WHEEL_DIR" and "WHEEL_STATE". The state of the Left-, Right- and Middle-Button could be piped in my programm without problems. The same problem occurs on Linux with Vista 13. On Windows with Vista 13 everything is fine. Have you any suggestions for me? Is there a workaround to get the information about the scrollwheel movement on Linux? Thank you for your help! Best regards, Daniel Homann |