|
|
3 dias atrás | |
|---|---|---|
| .. | ||
| README.md | 3 dias atrás | |
| build-upstream.bat | 3 dias atrás | |
| build.bat | 3 dias atrás | |
| mouse_driver_demo.c | 3 dias atrás | |
| mouse_driver_demo.prg | 3 dias atrás | |
| mousedemo-upstream.prg | 3 dias atrás | |
| run-vice.bat | 3 dias atrás | |
This sample lives in its own folder and builds a small C64 program with cc65.
It is based on the upstream cc65 sample samples/mousedemo.c, but trimmed down
to a simple C64-specific example.
mouse.h from cc65c64_1351_moucc65 mouse callbacks for drawing the pointerThat means the mouse driver is linked into the program at build time, so you do
not need to copy a separate .mou driver file onto disk just to run it.
mouse_driver_demo.c - the demo programbuild.bat - builds mouse_driver_demo.prgrun-vice.bat - builds if needed, then autostarts the program in x64scFrom this folder:
build.bat
run-vice.bat
The demo expects the cc65 tools to be on PATH, and it expects VICE 3.10 at:
C:\Program Files\GTK3VICE-3.10-win64\bin\x64sc.exe
H hides or shows the cursorC centers the cursorQ quitsrun-vice.bat starts x64sc with:
-mouse -controlport1device 3
That matches the VICE 3.10 Mouse (1351) device with the program's default
c64_1351_mou driver.
If you want the joystick-emulated mouse driver instead, change:
mouse_install(&mouse_def_callbacks, c64_1351_mou);
to:
mouse_install(&mouse_def_callbacks, c64_joy_mou);
The cc65 C64 docs say c64_joy_mou expects a joystick-emulated mouse in C64
port #1, while c64_1351_mou expects a standard mouse in C64 port #0.
Powered by TurnKey Linux.