Well, it was the C64 version that is certain. I used that as a base to understand how it worked, then simply remade it on the Vic-20. Its a simple 4-bit communication protocol.groepaz wrote:1351 wont work on vic20 :/
Kakemoms: if you dont find that disassembly - even knowing what version of mouse cheese you disassembled would help (easy enough to find the mouse stuff ...)
Vic-20 mouse driver & demo program for NEOS mouse
Moderator: Moderators
Re: Vic-20 mouse driver & demo program for NEOS mouse
Re: Vic-20 mouse driver & demo program for NEOS mouse
i have a NEOS mouse here now....and i can tell two things for sure:
- mouse cheese does neither use, nor even check, the left mouse button
- the left mouse button IS connected to fire, just like vice used to emulate it (and i am right now putting that back into VICE)
really curious now how you came to your conclusions and what exactly you disassembled there
edit: ok so... VICE behaves exactly like NEOS mouse now, confirmed with https://sourceforge.net/p/vice-emu/code ... ouse/neos/ (c64 test code) and https://sourceforge.net/p/vice-emu/code ... use/vic20/ (slightly modified version of your vic20 code)
cheers!
- mouse cheese does neither use, nor even check, the left mouse button
- the left mouse button IS connected to fire, just like vice used to emulate it (and i am right now putting that back into VICE)
really curious now how you came to your conclusions and what exactly you disassembled there

edit: ok so... VICE behaves exactly like NEOS mouse now, confirmed with https://sourceforge.net/p/vice-emu/code ... ouse/neos/ (c64 test code) and https://sourceforge.net/p/vice-emu/code ... use/vic20/ (slightly modified version of your vic20 code)
cheers!
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
- polluks
- Vic 20 Amateur
- Posts: 45
- Joined: Sat Apr 29, 2017 4:53 pm
- Website: http://www.bilskaja.de
- Location: Germany
- Occupation: FI
Re: Vic-20 mouse driver & demo program for NEOS mouse
How about a cc65 driver? 

VC20 [WGA103574] + UltiMem
- plbyrd
- Vic 20 Hobbyist
- Posts: 135
- Joined: Tue Jun 01, 2010 9:32 pm
- Website: http://thesharp.ninja
- Location: Clarksville, TN
- Occupation: Software Engineer
Re: Vic-20 mouse driver & demo program for NEOS mouse
I started a joystick mouse driver for cc65 last night. Ran into a problem getting it compiled with the standard makefile, have sent an email to the cc65-devel mailing list with the details.polluks wrote:How about a cc65 driver?
If I get that working then I'll take a look at this code and see about adapting it for VICE. The driver model is pretty simple.
Re: Vic-20 mouse driver & demo program for NEOS mouse
Links updated (in first two posts)
Re: Vic-20 mouse driver & demo program for NEOS mouse
Thinking back on this I am really sure now that I opened the NEOS mouse to see that the fire button was connected to the left mouse button.groepaz wrote:i have a NEOS mouse here now....and i can tell two things for sure:
- mouse cheese does neither use, nor even check, the left mouse button
- the left mouse button IS connected to fire, just like vice used to emulate it (and i am right now putting that back into VICE)
really curious now how you came to your conclusions and what exactly you disassembled there
edit: ok so... VICE behaves exactly like NEOS mouse now, confirmed with https://sourceforge.net/p/vice-emu/code ... ouse/neos/ (c64 test code) and https://sourceforge.net/p/vice-emu/code ... use/vic20/ (slightly modified version of your vic20 code)
cheers!
- javierglez
- Vic 20 Hobbyist
- Posts: 120
- Joined: Sat Jun 03, 2017 3:33 pm
- Location: Spain
Re: Vic-20 mouse driver & demo program for NEOS mouse
This is interesting. But I was unable to run the sample programs in VICE.
The program displaying the mouse coordinates shows both values incrementing regardless of the device selection in the Control port box.
Maybe I missed some step or something has changed in the emulator.
The program displaying the mouse coordinates shows both values incrementing regardless of the device selection in the Control port box.
Maybe I missed some step or something has changed in the emulator.
- javierglez
- Vic 20 Hobbyist
- Posts: 120
- Joined: Sat Jun 03, 2017 3:33 pm
- Location: Spain
Re: Vic-20 mouse driver & demo program for NEOS mouse
I wasn't capturing the mouse Alt-M, however, it still doesn't work. The values stop increasing but then remain constant.
However, I got a real Neos mouse from ebay and sometimes it works fine, sometimes it just does the increasing coordinates thing.
Anyway, it's cool.
However, I got a real Neos mouse from ebay and sometimes it works fine, sometimes it just does the increasing coordinates thing.
Anyway, it's cool.
Re: Vic-20 mouse driver & demo program for NEOS mouse
I think you'll have to make sure to plug in the mouse before turning on the computer, and also make sure nothing else uses that joystickport before you run the NEOS program.... its really all a bit unstable
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
- javierglez
- Vic 20 Hobbyist
- Posts: 120
- Joined: Sat Jun 03, 2017 3:33 pm
- Location: Spain
Re: Vic-20 mouse driver & demo program for NEOS mouse
An update about my Neos mouse: it seems to work well with my Final Expansion Alpha plugged in.
Whileas the other day when I was trying it with MCES 37kB RAM (which overlaps IO area) the mouse driver sometimes started fine, but sometimes refused to start and showed the wrong behaviour I tried to explain.
Whileas the other day when I was trying it with MCES 37kB RAM (which overlaps IO area) the mouse driver sometimes started fine, but sometimes refused to start and showed the wrong behaviour I tried to explain.