Not getting on3DMouseMove events
by Justin Tolchin · in RTS Starter Kit · 05/18/2005 (5:46 pm) · 0 replies
Hi all,
This is actually a TSE/RTS integration question. I had a version of PlayGui.gui working great in the normal RTS kit, but when I ported my RTS stuff over to TSE suddenly the "mouse panning" (moving the mouse to the edges of the screen to control the camera scrolling) was only working for the areas of the screen that didn't have other controls on top of the main GuiRTSTSCtrl. So for example, I used to be able to move the mouse to the bottom of the screen where the minimap panel is and still get those mouse events at the GuiRTSTSCtrl level and the camera would scroll. For some reason with TSE this doesn't work with the exact same PlayGui.gui.
I've traced it down to the GuiCanvas::rootMouseMove method, which calls "findMouseControl" to determine which control should get the mouse move event. Why this returns the GuiRTSTSCtrl in the RTS kit and the overlaying Gui control with TSE is what I don't understand. Any ideas? Does the "firstResponder" flag play into this at all? I really wasn't sure what this did, but anyway it's set the same in both .gui files.
Thanks!
This is actually a TSE/RTS integration question. I had a version of PlayGui.gui working great in the normal RTS kit, but when I ported my RTS stuff over to TSE suddenly the "mouse panning" (moving the mouse to the edges of the screen to control the camera scrolling) was only working for the areas of the screen that didn't have other controls on top of the main GuiRTSTSCtrl. So for example, I used to be able to move the mouse to the bottom of the screen where the minimap panel is and still get those mouse events at the GuiRTSTSCtrl level and the camera would scroll. For some reason with TSE this doesn't work with the exact same PlayGui.gui.
I've traced it down to the GuiCanvas::rootMouseMove method, which calls "findMouseControl" to determine which control should get the mouse move event. Why this returns the GuiRTSTSCtrl in the RTS kit and the overlaying Gui control with TSE is what I don't understand. Any ideas? Does the "firstResponder" flag play into this at all? I really wasn't sure what this did, but anyway it's set the same in both .gui files.
Thanks!