Shardik wrote:You should take a look into #PB_EventType_*
Hi
I know eventType, but they need special gadget (#pb_EventType_LeftButtondown need canvas for example)
I need : "Event" (mouse), not "eventtype"
A simple example to see the difference :
Code: Select all
OpenWindow(0, 0, 0, 220, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Repeat
Event = WaitWindowEvent()
EventType = EventType()
Select event
Case #WM_LBUTTONDOWN
Debug "mouse left (with WaitWindowEvent())!"
EndSelect
Select EventType
Case #PB_EventType_LeftButtonDown
Debug "mouse left (with eventtype...!)"
EndSelect
Until Event = #PB_Event_CloseWindow
With some of my applications (map editor, 2D painting), I need event : #WM_LBUTTONDOWN , #WM_LBUTTONUp, and so (right, mousemove, wheel...), but they aren't crossplatform.