src/sdl/input.cc
/*
 * Returns a byte that contains the current set of valid controller inputs.
 * Conflicting directions in the input status are masked out based on which
 * was pressed more recently.
 */
Returns a byte that contains the current set of valid controller inputs.
Conflicting directions in the input status are masked out based on which
was pressed more recently.
Returns a byte that contains the current set of valid controller inputs . Conflicting directions in the input status are masked out based on which was pressed more recently .
DataWord Input::Poll(void) {
  DataWord vmask = (dpad_priority_up_) ? (~FLAG_DOWN) : (~FLAG_UP);
  DataWord hmask = (dpad_priority_left_) ? (~FLAG_RIGHT) : (~FLAG_LEFT);
  return input_status_ & vmask & hmask;
}
DataWord Input :: Poll ( void ) { DataWord vmask = ( dpad_priority_up_ ) ? ( ~ FLAG_DOWN ) : ( ~ FLAG_UP ) ; DataWord hmask = ( dpad_priority_left_ ) ? ( ~ FLAG_RIGHT ) : ( ~ FLAG_LEFT ) ; return input_status_ & vmask & hmask ; }
Returns a byte that contains the current set of valid controller inputs.
Returns a byte that contains the current set of valid controller inputs .