/* call-seq:
 *   input.getJoystickAxis( joystick, axis )    -> true or false
 *
 * The returned position is in the range [-100, 100], except the POV which is an angle and is thus defined in [0, 360].
 */
static VALUE Input_GetJoystickAxis( VALUE self, VALUE aJoystick, VALUE anAxis )
{
        sf::Input *object = NULL;
        Data_Get_Struct( self, sf::Input, object );
        unsigned int rawJoystick =  NUM2UINT( aJoystick );
        sf::Joy::Axis rawAxis =  static_cast< sf::Joy::Axis >( NUM2INT( anAxis ) );
        return rb_float_new( object->GetJoystickAxis( rawJoystick, rawAxis ) );
}