X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-Joystick.html-inc;h=deb97b754cb05fb5a085e32386eaf2493afdf664;hb=411e0b6a19b323b88847fbffe2323afe98e9f8dc;hp=bf306f3a14e95de80b19076fccc53c5644125852;hpb=a9a9aa21353bebf509e63620aac4346ba5d9b030;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-Joystick.html-inc b/pages/SDL-Joystick.html-inc index bf306f3..deb97b7 100644 --- a/pages/SDL-Joystick.html-inc +++ b/pages/SDL-Joystick.html-inc @@ -8,7 +8,7 @@
  • METHODS -
     my $joystick = SDL::Joystick::open(0);
    +
     my $joystick = SDL::Joystick->new(0);
     
      my $position = SDL::Joystick::get_hat($joystick, 0);
     
    @@ -226,7 +226,7 @@ it may be necessary to impose certain tolerances on these values to account for
     

    get_button returns the current state of the given button on the given joystick.

    Returns 1 if the button is pressed. Otherwise, 0.

    -
     my $joystick    = SDL::Joystick::open(0);
    +
     my $joystick    = SDL::Joystick->new(0);
     
      my $num_buttons = SDL::Joystick::num_buttons($joystick);
     
    @@ -250,7 +250,7 @@ it may be necessary to impose certain tolerances on these values to account for
     

    Returns 0 on success or -1 on failure

     my $delta_x  = 0;
      my $delta_y  = 0;
    - my $joystick = SDL::Joystick::open(0);
    + my $joystick = SDL::Joystick->new(0);
     
      SDL::Joystick::update();
     
    @@ -265,7 +265,7 @@ it may be necessary to impose certain tolerances on these values to account for
     
     void SDL::Joystick::close( object );
     
     
    -

    Closes a previously opened joystick. See SDL::Joystick::open

    +

    Closes a previously opened joystick. See SDL::Joystick::new

     SDL::Joystick::close($joystick) if SDL::Joystick::opened(0);