dschmenk/apple2pi

mouse stops working moments after connecting

mogorman opened this issue · 8 comments

on first connect the mouse moves in all directions correctly. after tens of seconds the mouse no longer moves up , all up commands are interpretted as down and left and right remain fine, down also remains fine.

oh i forgot to say, its an apple iic with apple mouse, and running on latest git and happened with both 1.4 po disks

er sorry again iic+

Ok, thanks for the info. I will try replicating on my IIc+. I have been running on my ROM 1 IIc for months without error.

On Mar 2, 2014, at 8:00 PM, mogorman notifications@github.com wrote:

oh i forgot to say, its an apple iic with apple mouse, and running on latest git and happened with both 1.4 po disks


Reply to this email directly or view it on GitHub.

I tried out my IIc+. You actually get further than I do. It appears that the code I wrote to see if the IIc has a joystick or mouse connected to the port is breaking on the IIc+. Here are a few things to try:

Start your IIc+ in normal mode (press ESC+CTRL+CMD at power up).

Try starting with the mouse unplugged, then plug it in later.

Use a joystick on the IIc+. You can use it as a mouse with 'sudo a2joymou' or as a joystick in gsport with 'sudo a2joy'. You can plug a USB mouse into the Pi for X Windows and mouse control in gsport.

I'll look into what the failure is for the mouse on the IIc+, but I can't promise when.

Thanks for your help,

Dave...

On Mar 2, 2014, at 7:59 PM, mogorman notifications@github.com wrote:

on first connect the mouse moves in all directions correctly. after tens of seconds the mouse no longer moves up , all up commands are interpretted as down and left and right remain fine, down also remains fine.


Reply to this email directly or view it on GitHub.

my joystick doesnt seem to do much of anything on my apple iic+ but i havent used it before so it might just be a garbage device. Booting in normal mode didn't seem to matter with the mouse

is the source for the client code on the apple ii available? or anyway i can turn on more debugging easily?

The source code is on the boot floppy: https://github.com/dschmenk/apple2pi/blob/master/share/A2PI-1.4.PO (A2PI.S). The Merlin assembler is also included. There could be a couple reasons why the IIc+ behaves differently than all the other Apple IIs. The mouse firmware is put in differential mode, which returns delta values instead of absolute values. That would probably be the place to start.

Dave...

On Mar 4, 2014, at 7:21 AM, mogorman notifications@github.com wrote:

is the source for the client code on the apple ii available? or anyway i can turn on more debugging easily?


Reply to this email directly or view it on GitHub.

I have the same problem with my IIc+ (ROM 5?). One very reliable trick is to simply CTRL+RESET to restart the connection. This restores the mouse to normal operation for a brief period. The confusion of the pointer seems sort of related to your input actions. For example, use of the menus, where the button is held down while moving the pointer, seems to exacerbate the problem. The first time this happened to me, I quickly lost sight of the mouse cursor off the bottom of my screen and wound up rebooting! After a few times, I figured out the CTRL+RESET trick.

Maybe we can add a keystroke that manually toggles the client from joystick mode to mouse mode, instead of it automagically determining which input device is connected?