Make size of hi-res for applen work on Pi3.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-12-15 17:37:21 +00:00
parent 5de5af3fe8
commit 986cf9b896
2 changed files with 12 additions and 10 deletions

View file

@ -59,14 +59,16 @@ Frontend based on ncurses, with a ASCII art graphic mode.
Keyboard shortcuts Keyboard shortcuts
* F2: terminate emulator * ``F2``: reset the machine
* F12: Load Snapshot * ``F3``: terminate the emulator
* ALT-RIGHT: wider hi res graphis * ``F11``, ``F12``: Save, Load Snapshot
* ALT-LEFT: narrower hi res graphics * ``ALT-RIGHT``: wider hi res graphis
* ALT-UP: vertical hi res (smaller) * ``ALT-LEFT``: narrower hi res graphics
* ALT-DOWN: vertical hires (bigger) * ``ALT-UP``: vertical hi res (smaller)
* ``ALT-DOWN``: vertical hires (bigger)
In order to properly appreciate the wider hi res graphics, open a big terminal window and choose a small font size. In order to properly appreciate the wider hi res graphics, open a big terminal window and choose a small font size.
Try ``CTRL-`` as well if ``ALT--` does not work: terminals do not report a consistent keycode for these combinations.
The joystick uses evdev (currently the device name is hardcoded). The joystick uses evdev (currently the device name is hardcoded).

View file

@ -467,16 +467,16 @@ int ProcessKeyboard()
case 0x14a: // DEL case 0x14a: // DEL
ch = 0x7f; ch = 0x7f;
break; break;
case 544: // ALT - LEFT (Ctrl would be 546) case 543 ... 546: // Various values for Ctrl/Alt - Left on Ubuntu and Pi OS
asciiArt->changeColumns(-1); asciiArt->changeColumns(-1);
break; break;
case 559: // ALT - RIGHT (561) case 558 ... 561: // Ctrl/Alt - Right
asciiArt->changeColumns(+1); asciiArt->changeColumns(+1);
break; break;
case 565: // ALT - UP (567) case 564 ... 567: // Ctrl/Alt - Up
asciiArt->changeRows(-1); asciiArt->changeRows(-1);
break; break;
case 524: // ALT - DOWN (526) case 523 ... 526: // Ctrl/Alt - Down
asciiArt->changeRows(+1); asciiArt->changeRows(+1);
break; break;
default: default: