UberWheel.cs
Version 1.75
by UberGuy (FT) - uberguy@tribes2.org
03/02/2002

REQUIRES: Writer's Support Pack
===============================
http://uberguy.tribes2.org/files/support/support.vl2

UPDATE v1.75 (09/21/2002)
============
Made an update allowing the wheel binds to work correctly with jsut's full
force grenade script.

UPDATE v1.73 (03/02/2002)
============
Attempt to fix a persistant problem for some players where the script loses its
settings between restarts of T2. As I am unable to reproduce it, I'm not sure I
succeeded.

UPDATE v1.7
============
Per a suggestion by Halide, I disabled extended wheel functions while the
mouse cursor is active.

UPDATE v1.66 (12/20/2001)
============
Fixed a yet another bug in the handling where uberWheel swaps binds on the
mouse. Also fixed a bug in the initialization that was causing console error
messages.

UPDATE v1.65
============
Fixed a bug in the handling where uberWheel swaps binds on the mouse. If you
saved your keybinds you would save a temporary bind for the mouse. Next time you
played T2, if you were NOT binding specical functions to the mouse, rolling the
wheel would cause an infinite loop and crash the game!

UPDATE v1.6
===========
Fixed a bug where the wheel bind list would grow duplicate entries.
Fixed a bug in handling the keypress simulation for the wheel bind.

UPDATE v1.5
===========
Added feature to bind other functions to the mouse wheel. There is a toggle to
enable the bind for each roll direction (forward and back), and an associated
drop down to select what you want to bind to. Only functions listed in the
normal keybind list are offered for binding, but this means you can bind to any
script that has a keybind.

UberWheel emulates a 0.2 second keypress for the selected function, so be
careful to choose to bind it to something where that makes sense. I might later
make this keypress time configurable, but this seems unlikely to be needed.

UPDATE v1.2
===========
+ Added ability to make wheel not cycle weapon around the ends of the weapon
HUD. Thanks to SonOfJorEl (FT) for the idea.

UPDATE v1.11
===========
+ Fixed bug preventing loading of preferences.

UPDATE v1.1
===========
+ Changed from a working script to one good for public consumption. =)

This T2 script will allow you to control how your mouse wheel operates. My wheel
button is bound to grenades, and my wheel "roll" is bound to "change weapon".
What would often happen is I would change weapons while throwing a grenade
because I would accidentally roll the wheel at the same time I was pressing it.
So I wrote this script.  It has only two controls, both accessible from it's
control panel in Writer's script browser.  The 1st is the number of "clicks" you
want to have to roll the mouse before it will register, and the 2nd is the time
interval you want that number to be counted in.  For example, the default is
2 clicks in 200 milliseconds.  Neither one click or 2 clicks in a longer period
of time will count.  But rolling the wheel several clicks at a time is sure to
register at least once.  Play with the settings to get the feel you like.

TO INSTALL:
===========
Place uberWheel.vl2 anywhere under Tribes2\GameData\base.
Play T2!  The script is configured from Writer's script browser GUI.
It's pretty straightforward.

Enjoy!
