Yes this is how it works in windows , it has a mouse visible counter per window, so if you call SetRawMouseVisible(0) 3 times you have to call SetRawMouseVisible(1) 3 times to get the mouse visible counter down. This is how windows works and is not a bug in AppGameKit
, also it works different in Mac/Linux , and can give different results if you also switch to fullscreen. The only way i found that seams to always work on all platforms is this:
SetRawMouseVisible(0)
SetRawMouseVisible(0)
sync()
SetRawMouseVisible(0)
SetRawMouseVisible(0)
or:
SetRawMouseVisible(1)
SetRawMouseVisible(1)
sync()
SetRawMouseVisible(1)
SetRawMouseVisible(1)
Looks strange but works on all platforms , even if you also change fullscreen in the same sync.