# File lib/rubygame/joystick.rb, line 104 def self.deactivate_all # Return right away if it isn't active return if( SDL.WasInit(SDL::INIT_JOYSTICK) == 0 ) num_joysticks.times do |i| joy = SDL.JoystickOpen(i) unless( joy.pointer.nil? ) SDL.JoystickClose( joy ) end end return nil end