I found the information about optical mouse hacking on the Internet (http://spritesmods.com/?art=mouseeye). I had been looking for such mouse for a long time. The first which I found, had defective optical chip. But the second was more succsessful.
You need to find an optical mouse of the older model, where the optical chip has 8 legs. A mouse of the new model has only one chip, where all interfaces (USB or PS/2) have already been integrated into the same chip.

The program was not written by me. However everything is quite clear. All data – change of coordinates and even the view under the mouse pad are read out through 2 wires. Here is an image got “through mouse eyes”:

Here is a scanner mode:

A connection scheme is very simple – the mouse is powered from 5V. Connect SDIO pin and LED’s anode (+) to the 12th leg of printer port, LED’s katode (-) – to the 5th leg and SCK – to the 9th leg. You need to check if mica and LED (mouse elements) are connected. Then disconnect SCK and SDIO pins coming into mouse controller. The collocation of optical chip (ADNS-2610, A1610 or like) is following: 1 and 2 – mica, 3-SDIO, 1-SCK, 5-LED controll, 6-GND, 7-Vcc(+5V), 8-RefA (here a small capacitor is connected).
The software is the same as in original post. As my LPT1 port has burned out, I added additional I/o addresses of PCI board.
You can download source code and compiled MS Visual Basic program. There is one dll file (inpout32.dll) which you should copy to windows/system32 folder.
















At last I repeated experiment from youtube about burning DVD laser. I dissasembled old DVDRW drive. I noticed small crack in laser diode, so I removed the glass. As open laser is very prone to external damage, keep it from water, dust and agresive liquids. I placed laser diode to some colimator from old laser printer. I pumped power up to max- I have few diodes, so decided to burn it to death.
