Mouse Wheel

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Valerious
Posts: 11
Joined: Mon May 03, 2010 9:26 pm
Location: Russia, Moscow

Mouse Wheel

Post by Valerious »

Hi!
it would be nice to make the implementation of processing mouse wheel.
For example:

Code: Select all

int tmp=App.MouseWheelDelta;
App.CameraRotation.X +=tmp;
User avatar
Kjell
Posts: 1883
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

Hi Valerious,

Shouldn't be too difficult to implement. The only question is whether the results from SDL ( Mac / Linux ) are identical to those returned in Windows, but I guess we ( Ville? ) will find out soon enough :)

Welcome to the club ~
Kjell
User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Good suggestion, it shouldn't be hard to fix.

It seems I just need to add code that responds to this message:

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

And find something corresponding to that in SDL.
User avatar
Valerious
Posts: 11
Joined: Mon May 03, 2010 9:26 pm
Location: Russia, Moscow

Post by Valerious »

User avatar
VilleK
Site Admin
Posts: 2277
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Thanks for the SDL-link.

I've implemented it for Win32 now, you can try it in this version:

http://www.zgameeditor.org/files/ZGameEditor_beta.zip
User avatar
Valerious
Posts: 11
Joined: Mon May 03, 2010 9:26 pm
Location: Russia, Moscow

Post by Valerious »

Thanks!
Post Reply