[Implemented] #PB_EventType_Right/LeftButtonDown
[Implemented] #PB_EventType_Right/LeftButtonDown
I would like to have these two Events to check is the Left or Right Mousebutton is pushed.
Thx
Thx
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
*cough*
Code: Select all
Debug #PB_EventType_LeftClick
Debug #PB_EventType_RightClick
oh... and have a nice day.
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
+1
Assuming I'm understanding the request.
This is for the ability to catch the mouse down event isn't it? (not click, which is mouse up)
I think when I needed to do this Sparkie got me some API code to show me how to do it. Linked below in case it helps.
http://www.purebasic.fr/english/viewtop ... ight=mouse
Apologies if I'm off topic
Assuming I'm understanding the request.
This is for the ability to catch the mouse down event isn't it? (not click, which is mouse up)
I think when I needed to do this Sparkie got me some API code to show me how to do it. Linked below in case it helps.
http://www.purebasic.fr/english/viewtop ... ight=mouse
Apologies if I'm off topic
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Hello Guys
I´m a little bit surprised about this amount of reactions.
So lets see what we have...
"Click" and "Button Down" is a bit differetn, isnt it
Cmon Kaeru, Do you think Im that stupid? Arghh, that hurts me deep in my heart
@Fluid Byte - Can you be a bit more specific? I didnt found anything in the PB-help...
@pdwyer - nop, your just right..
My request is: two new Events which will be returnd by Eventtype() to check if the left or right mouse is pressed (but not released yet).
WinAPI is ok, but I think it will be better, if it is supported on all Platforms.
@Tranquil: Why doesnt it make sense? If some (or all) gadgets return this Event, and maybe also the window itself, it would open some new possibilities i think
I´m a little bit surprised about this amount of reactions.

So lets see what we have...
*cough* *cough**cough*
Code:
Debug #PB_EventType_LeftClick
Debug #PB_EventType_RightClick
"Click" and "Button Down" is a bit differetn, isnt it
Cmon Kaeru, Do you think Im that stupid? Arghh, that hurts me deep in my heart

@Fluid Byte - Can you be a bit more specific? I didnt found anything in the PB-help...
@pdwyer - nop, your just right..
My request is: two new Events which will be returnd by Eventtype() to check if the left or right mouse is pressed (but not released yet).
WinAPI is ok, but I think it will be better, if it is supported on all Platforms.
@Tranquil: Why doesnt it make sense? If some (or all) gadgets return this Event, and maybe also the window itself, it would open some new possibilities i think
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
I'm not talking about stupidity... yetHurga wrote:"Click" and "Button Down" is a bit differetn, isnt it
Cmon Kaeru, Do you think Im that stupid? Arghh, that hurts me deep in my heart![]()
I don't think "Hold my Button" is an Event.
there are DRAG events, wich mean movements with button down.
but they are handled as DragStart and Drop, no continous hold,
and they are no EventTypes, what was literally your request:
(ok, DragStart is an EventType)
surely you could check for holding a mousebutton down, but this is an active check like GetAsyncKeystate,#PB_EventType_LeftButtonDown and #PB_EventType_Rightbut...
not passively waiting for some event to happen...
oh... and have a nice day.
Did you see the "
" i was not serios...
Hm, I dont think about an drag event.
I think I got it with that, that Button down is not an event...
Maybe this would cause problems if it will be an event.
So lets say an other way to natively ask the buttonstatus in a window.
Maybe this is the a more proper way
(But maybe this Eventtype thing could be nice, anyway)

Hm, I dont think about an drag event.
I think I got it with that, that Button down is not an event...
Maybe this would cause problems if it will be an event.
So lets say an other way to natively ask the buttonstatus in a window.
Maybe this is the a more proper way
(But maybe this Eventtype thing could be nice, anyway)