Whatever I do with gdk_window_get_pointer_() I get an "Invalid Memory Access" Error thrown again my head. Here is a testcode:
Code: Select all
hWnd = OpenWindow(0, 0, 0, 640, 480, #PB_Window_SystemMenu, "Test")
x.l = 0 : y.l = 0
mask.l = 0
Repeat
Event = WindowEvent()
If gdk_window_get_pointer_(hWnd, @x, @y, @mask)
If (mask & #GDK_BUTTON1_MASK)
Debug "OK"
EndIf
EndIf
Delay(15)
Until Event = #PB_Event_CloseWindow
End

