increasing rate of change caused by mousewheel

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
Paradan
Posts: 16
Joined: Wed May 18, 2011 5:45 pm

increasing rate of change caused by mousewheel

Post by Paradan »

ok so the player has a pool of points that he can divide between two groups, and he can do it during run time.

the two groups display (using a repeat and render transform) on either side of the characters head and ive got it so that the mousewheel shuffles the points back and forth.

the problem is that in order to shift the whole pool to one side, too much "mousewheeling" is required.

do i need to make a "switch" that turns on and counts the number of wheel inputs that occur during an "input event" and have it scale up the output after a certain point?

im pretty sure i have this figured out, but i just wanted to check and make sure there wasnt a better way.
User avatar
Kjell
Posts: 1924
Joined: Sat Feb 23, 2008 11:15 pm

Re: increasing rate of change caused by mousewheel

Post by Kjell »

Hi Paradan,
Paradan wrote:do i need to make a "switch" that turns on and counts the number of wheel inputs that occur during an "input event" and have it scale up the output after a certain point?
Good thinking, that's probably the best way of doing it.

One question though, does the mouse-wheel delta go beyond the -1..1 range for you ( or anybody else, check with the attached executable )? It doesn't for me, even though the source-code seems to be fine.

K
Attachments
Delta.zip
(31.51 KiB) Downloaded 445 times
Post Reply