Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Scaling Joystick return values

$
0
0

Doing a radar simulation where a joystick moves a cursor over bogies heading towards the ship at the center of the screen. The outer marker ring is 10,000 yards. When the cursor is over a bogie, the joystick is pressed to mark that bogies as the current target.

I'm using GameControl Plus to interface to the joystick, and am noticing that as the bogies get close to the ship, there is a lot of jitter and it gets harder to 'mark' them. I have been using the GC+ return values for X and Y as they come (-1 to 1 linear) - but I'm wondering if I should be scaling them as the cursor gets closer to the ship - i.e. have progressive resolution from 10,000 yard to zero?

Wondering how to do this... would making the joystick values proceed at a logarithmic rate be appropriate? Ideas?


Viewing all articles
Browse latest Browse all 2896

Trending Articles