Class: Frusdl::Low::SDL::SDL_Joystick

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/frusdl/low/sdl.rb

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object

The struct is private



732
733
734
735
736
# File 'lib/frusdl/low/sdl.rb', line 732

def self.release(ptr) 
    if ptr && (!ptr.null?) 
        SDL.SDL_JoystickClose(ptr)
    end 
end