/* Simple algorithm to ramp up the mouse cursor speed to make it easier to use.  */
static void prvControlCursorSpeed(signed char *cVal, unsigned long ulInput, unsigned long ulSwitch1, unsigned long ulSwitch2)
/* Simple algorithm to ramp up the mouse cursor speed to make it easier to use.  */
static void prvControlCursorSpeed(signed char *cVal, unsigned long ulInput, unsigned long ulSwitch1, unsigned long ulSwitch2)
{
const char cSpeed = 20;
	if( !( ulInput & ulSwitch1 ) )
	{
		if( *cVal > 0 )
		{
			*cVal = 0;
		}
		if( *cVal > -cSpeed )
		{
			(*cVal)--;
		}
	}
	else if( !( ulInput & ulSwitch2 ) )
	{
		if( *cVal < 0 )
		{
			*cVal = 0;
		}
		if( *cVal < cSpeed )
		{
			(*cVal)++;
		}
	}
	else
	{
		*cVal = 0;
	}
}