Page 1 of 1

PC Mouse on PSX

Posted: May 25th, 2020, 9:39 pm
by ackerman
I'm doing a project to use the PC mouse and keyboard on a PSX.

Image

https://github.com/rpsubc8/serialpad

I have already 100% finished the use of the mouse. The keyboard is commented in code, but a test screen is still missing.
I don't use an official PSX mouse, but a PS/2 PC mouse or with usb to PS/2 adapter is used, together with a arduino.
For those who want to test it without lack of hardware, I have made a simulator with the auto hot key script.

Re: PC Mouse on PSX

Posted: May 26th, 2020, 5:13 am
by Shadow
You don't need to use the serial port if you make your own library for the MIPS side. Just translate the keyboard buttons to analog positions. The amount of bits you have is a 32-bit unsigned char (0x00 to 0xFF) on each axis which is heaps. You could have probably up to 10 keyboards connected to the PSX because each keyboard is typically 101 keys. 1 key per bit.

Re: PC Mouse on PSX

Posted: May 27th, 2020, 7:42 pm
by ackerman
I'm not using the PSX serial port for the keyboard, but the port for the controls, to ensure that it works even on the PsOne.
How would you propose to be able to connect up to 10 keyboards, translating to analogue positions, by attacking the arduino directly to the analogue stick potentiometer?

Re: PC Mouse on PSX

Posted: June 2nd, 2020, 10:52 pm
by ackerman
Since testing is time consuming, I have uploaded a visual demonstration in both emulator and real hardware of how the mouse works on the console. This way, you can see the operation in real time without making any modification.

Mouse on PSX emulator

PC mouse on real PSX