Warning: This site is under construction, most links will be broken.

LightX API -> lxinputjoypad -> scale [fields]

Last modified on Thu, 19th Apr 2007 at 14:22 UTC by zipplet

lxinputjoypad.scale_x, scale_y, scale_r, scale_z, scale_u, scale_v: single;


These are multipliers to be applied to all axes when the calibrated axis values are calculated.

Normally you do not need to alter these. However, some controllers have the "circle in the box" problem. You can compensate for that either in your game or by increasing the scaling factor for the axes until the range of movement covers the entire range.

Most USB controllers are scaled by the hardware in the pad, so the analog stick can cover the entire movement range. However, the xbox 360 controller in particular is not.

Use the joytool program to experiment with scaling values until you find ones appropriate for your application.

The default scale for all axes is 1, meaning no scaling.

Class: lxinputjoypad