From: <Dan...@dl...> - 2012-10-04 11:32:25
|
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 |