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
* F2: terminate emulator
* F12: Load Snapshot
* ALT-RIGHT: wider hi res graphis
* ALT-LEFT: narrower hi res graphics
* ALT-UP: vertical hi res (smaller)
* ALT-DOWN: vertical hires (bigger)
* ``F2``: reset the machine
* ``F3``: terminate the emulator
* ``F11``, ``F12``: Save, Load Snapshot
* ``ALT-RIGHT``: wider hi res graphis
* ``ALT-LEFT``: narrower hi res graphics
* ``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.
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).

View file

@ -467,16 +467,16 @@ int ProcessKeyboard()
case 0x14a: // DEL
ch = 0x7f;
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);
break;
case 559: // ALT - RIGHT (561)
case 558 ... 561: // Ctrl/Alt - Right
asciiArt->changeColumns(+1);
break;
case 565: // ALT - UP (567)
case 564 ... 567: // Ctrl/Alt - Up
asciiArt->changeRows(-1);
break;
case 524: // ALT - DOWN (526)
case 523 ... 526: // Ctrl/Alt - Down
asciiArt->changeRows(+1);
break;
default: