File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ class CStickBindGroup : public CBindGroup {
712
712
if (abs (event->jaxis .value )<25000 ) return 0 ;
713
713
return CreateAxisBind (event->jaxis .axis ,event->jaxis .value >0 );
714
714
} else if (event->type ==SDL_JOYBUTTONDOWN) {
715
- if (event->button .which !=stick) return 0 ;
715
+ if (event->jbutton .which !=stick) return 0 ;
716
716
#if defined (REDUCE_JOYSTICK_POLLING)
717
717
return CreateButtonBind (event->jbutton .button %button_wrap);
718
718
#else
@@ -1690,7 +1690,7 @@ static void SetActiveEvent(CEvent * event) {
1690
1690
}
1691
1691
1692
1692
static void DrawButtons (void ) {
1693
- SDL_FillRect (mapper.surface ,0 ,0 );
1693
+ SDL_FillRect (mapper.surface ,0 ,CLR_BLACK );
1694
1694
SDL_LockSurface (mapper.surface );
1695
1695
for (CButton_it but_it = buttons.begin ();but_it!=buttons.end ();but_it++) {
1696
1696
(*but_it)->Draw ();
You can’t perform that action at this time.
0 commit comments