Query: sdl_joystickgetball
OS: opensolaris
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SDL_JoystickGetBall(3) SDL API Reference SDL_JoystickGetBall(3)NAMESDL_JoystickGetBall - Get relative trackball motionSYNOPSIS#include "SDL.h" int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);DESCRIPTIONGet the ball axis change. Trackballs can only return relative motion since the last call to SDL_JoystickGetBall, these motion deltas a placed into dx and dy.RETURN VALUEReturns 0 on success or -1 on failureEXAMPLESint delta_x, delta_y; SDL_Joystick *joy; . . . SDL_JoystickUpdate(); if(SDL_JoystickGetBall(joy, 0, &delta_x, &delta_y)==-1) printf("TrackBall Read Error! "); printf("Trackball Delta- X:%d, Y:%d ", delta_x, delta_y);SEE ALSOSDL_JoystickNumBallsSDLTue 11 Sep 2001, 23:00 SDL_JoystickGetBall(3)
Related Man Pages |
---|
sdl_joystickopen(3) - opensolaris |
sdl_joystickopen(3) - redhat |
sdl_mousemotionevent(3) - redhat |
sdl_joystickopen(3) - suse |
sdl_mousemotionevent(3) - suse |
Similar Topics in the Unix Linux Community |
---|
Trying to block signal |
Change directory for core file |
What's legal and what's not? |
Identify problem with while getopts |
What is good? |