I worked it out, will update the programs later. It was not that the events 
were missing - once I enabled the good old Printf debugger, I saw that the 
events are flowing fine. The issue is that on Linux, every Move Mouse event 
reflected what buttons were pressed the entire time they were pressed. On 
Windows, only the Press Mouse event included a value for the Button that 
was pressed (i.e. pointer.ButtonLeft).  

mouse pos({Move Mouse 0 Shared 863h55m54.282s  false {637 369} {0 0} }) 
false
mouse pos({Press Mouse 0 Shared 863h55m54.425s ButtonLeft false {637 369} 
{0 0} }) true
mouse down left({Press Mouse 0 Shared 863h55m54.425s ButtonLeft false {637 
369} {0 0} })
mouse pos({Move Mouse 0 Shared 863h55m54.515s  false {638 369} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.535s  false {639 369} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.555s  false {642 369} {0 0} }) 
false
Dragging.
mouse pos({Move Mouse 0 Shared 863h55m54.572s  false {645 370} {0 0} }) 
false
mouse pos({Move Mouse 0 Shared 863h55m54.59s  false {648 370} {0 0} }) false

My code was detecting the return to 0 as the mouse button no longer being 
pressed.

Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cd2a324e-e8e9-4c32-b5ab-e96ff6842fff%40googlegroups.com.

Reply via email to