Can mouse wheel be readed in key event?

About advanced scenes, and the Thyme scripting language used in Algodoo.

Can mouse wheel be readed in key event?

Postby lololoer16_17 » Wed Apr 09, 2014 5:59 pm

Can mouse wheel be readed in key event?
If so, what is it's code (the text), ex: left click = mouse_left
lololoer16_17
 
Posts: 18
Joined: Tue Jan 21, 2014 8:55 pm
Location: Spain (South)

Re: Can mouse wheel be readed in key event?

Postby Xray » Thu Apr 10, 2014 1:44 am

I discovered that "mouse_middle" activates when the wheel is pressed (like a button), but I don't know if the wheel rotation can be detected. I tried "mouse_wheel" but that did not do anything.
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: Can mouse wheel be readed in key event?

Postby Kilinich » Thu Apr 10, 2014 11:23 am

Xray wrote:I discovered that "mouse_middle" activates when the wheel is pressed (like a button), but I don't know if the wheel rotation can be detected. I tried "mouse_wheel" but that did not do anything.


mouse_left
mouse_middle
mouse_right
mouse_wheel_up
mouse_wheel_down
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Can mouse wheel be readed in key event?

Postby Kilinich » Thu Apr 10, 2014 11:25 am

Xray wrote:I discovered that "mouse_middle" activates when the wheel is pressed (like a button), but I don't know if the wheel rotation can be detected. I tried "mouse_wheel" but that did not do anything.


mouse_left
mouse_middle
mouse_right
mouse_wheel_up
mouse_wheel_down
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Can mouse wheel be readed in key event?

Postby lololoer16_17 » Thu Apr 10, 2014 5:01 pm

Fantastic! Thankyou both! :clap:
lololoer16_17
 
Posts: 18
Joined: Tue Jan 21, 2014 8:55 pm
Location: Spain (South)

Re: Can mouse wheel be readed in key event?

Postby Xray » Thu Apr 10, 2014 6:26 pm

Yes, thank you kilinich! :clap:
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests