Lines Matching full:state
265 * Get the current state of an axis control on a joystick
269 Sint16 state;
275 state = joystick->axes[axis];
278 state = 0;
280 return(state);
284 * Get the current state of a hat on a joystick
288 Uint8 state;
294 state = joystick->hats[hat];
297 state = 0;
299 return(state);
331 * Get the current state of a button on a joystick
335 Uint8 state;
341 state = joystick->buttons[button];
344 state = 0;
346 return(state);
423 /* Update internal joystick state */
448 /* Update internal joystick state */
474 /* Update internal mouse state */
497 int SDL_PrivateJoystickButton(SDL_Joystick *joystick, Uint8 button, Uint8 state)
503 switch ( state ) {
511 /* Invalid state -- bail */
516 /* Update internal joystick state */
517 joystick->buttons[button] = state;
525 event.jbutton.state = state;
544 int SDL_JoystickEventState(int state)
555 switch (state) {
557 state = SDL_IGNORE;
559 state = SDL_EventState(event_list[i],SDL_QUERY);
560 if ( state == SDL_ENABLE ) {
567 SDL_EventState(event_list[i], state);
571 return(state);