/* call-seq: * window.setJoystickThreshold( new_threshold ) * * Change the joystick threshold. * * The joystick threshold is the value below which no JoyMoved event will be generated. * * The threshold value is 0.1 by default. The threshold has to be in the range 0..100 */ static VALUE Window_SetJoystickThreshold( VALUE self, VALUE aThreshold ) { sf::Window *object = NULL; Data_Get_Struct( self, sf::Window, object ); object->SetJoystickThreshold( rb_float_new( aThreshold ) ); return Qnil; }