Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lantus360 committed Aug 19, 2018
1 parent 9b1f0cc commit cb92973
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/nx/nx_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ void osd_update_video_and_audio(struct mame_display *display)
const uint32_t x = display->game_visible_area.min_x;
const uint32_t y = display->game_visible_area.min_y;
const uint32_t pitch = display->game_bitmap->rowpixels;

// Copy pixels

//if(display->game_bitmap->depth == 16)
if(display->game_bitmap->depth == 16)
{

// theres probably a much cleaner way of doing this
Expand Down
8 changes: 4 additions & 4 deletions src/nx/nx_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ void nxCustomizeInputPortDefaults( struct ipd *defaults )
switch( entry->type )
{
case IPT_UI_CONFIGURE:
/*REMAP_SEQ_7( BUTTONCODE( 0, BUTTON_RA ), CODE_OR,
BUTTONCODE( 1, BUTTON_RA ), CODE_OR,
BUTTONCODE( 2, BUTTON_RA ), CODE_OR,
BUTTONCODE( 3, BUTTON_RA ));*/
REMAP_SEQ_7( BUTTONCODE( 0, BUTTON_RA_STICK ), CODE_OR,
BUTTONCODE( 1, BUTTON_RA_STICK ), CODE_OR,
BUTTONCODE( 2, BUTTON_RA_STICK ), CODE_OR,
BUTTONCODE( 3, BUTTON_RA_STICK ));
break;
case IPT_UI_CANCEL:
REMAP_SEQ_11( JOYCODE_1_SELECT, JOYCODE_1_START, CODE_OR,
Expand Down
7 changes: 6 additions & 1 deletion src/nx/nx_joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ void nxInitializeJoystick( void )
ADDENTRY( "Minus", JOYCODE( stickIndex, JT_BUTTON, BUTTON_MINUS ), STDCODE( SELECT ) );
ADDENTRY( "LThumb", JOYCODE( stickIndex, JT_BUTTON, BUTTON_ZL ), CODE_OTHER );
ADDENTRY( "RThumb", JOYCODE( stickIndex, JT_BUTTON, BUTTON_ZR ), CODE_OTHER );
ADDENTRY( "RA Stick", JOYCODE( stickIndex, JT_BUTTON, BUTTON_RA_STICK ), CODE_OTHER );


}
Expand Down Expand Up @@ -130,7 +131,11 @@ int osd_is_joy_pressed( int joycode )
case BUTTON_PLUS:
return (buttons & KEY_PLUS);
case BUTTON_MINUS:
return (buttons & KEY_MINUS);
return (buttons & KEY_MINUS);
case BUTTON_LA_STICK:
return (buttons & KEY_LSTICK);
case BUTTON_RA_STICK:
return (buttons & KEY_RSTICK);
}
break;

Expand Down
4 changes: 3 additions & 1 deletion src/nx/nx_joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ typedef enum ButtonID {
BUTTON_PLUS,
BUTTON_MINUS,
BUTTON_ZL,
BUTTON_ZR
BUTTON_ZR,
BUTTON_LA_STICK,
BUTTON_RA_STICK,
};


Expand Down

0 comments on commit cb92973

Please sign in to comment.