Alt N to create new D64 image

This commit is contained in:
penfold42 2018-07-20 14:24:54 +10:00
parent ad15313511
commit b041e61c26
2 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ bool InputMappings::CheckKeyboardBrowseMode()
// SetKeyboardFlag(PAGEUP_LCD_FLAG); // SetKeyboardFlag(PAGEUP_LCD_FLAG);
//else if (keyboard->KeyHeld(KEY_END)) //else if (keyboard->KeyHeld(KEY_END))
// SetKeyboardFlag(PAGEDOWN_LCD_FLAG); // SetKeyboardFlag(PAGEDOWN_LCD_FLAG);
else if (keyboard->KeyHeld(KEY_N)) else if (keyboard->KeyHeld(KEY_N) && keyboard->KeyEitherAlt() )
SetKeyboardFlag(NEWD64_FLAG); SetKeyboardFlag(NEWD64_FLAG);
else else
{ {

View file

@ -344,9 +344,9 @@ public:
{ {
return (keyStatus[0] | keyStatus[1]); return (keyStatus[0] | keyStatus[1]);
} }
inline bool KeyLeftAlt() inline bool KeyEitherAlt()
{ {
return (modifier & 1<<2); return (modifier & (KEY_MOD_LALT | KEY_MOD_RALT) );
} }
}; };
#endif #endif