Welcome, Guest. Please login or register.


Author Topic: Universal Mouse Driver (Read 23864 times)

Online gflorez

  • EP addict
  • *
  • Posts: 2585
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 52.0 Firefox 52.0
    • View Profile
Re: Universal Mouse Driver
« Reply #180 on: 2017.July.30. 22:48:15 »
Thinking out loud:

-How will work the click event?

It will be a two phase event. Every time a click is done, the position of the cursor is compared to the actual position of the Mouse pointer. If they are the same, an "Enter" keyclick will be injected on the Keyboard driver buffer(thanks to a program found on a Dutch magazine). If they are different, the escape sequence "1D,3D,20+Y,20+X" will be printed on the Editor channel, moving the cursor to the Mouse pointer position.

-And, how can a scroll be implemented on the EP editor?

The easiest way is by printing control codes to the Editor channel. But if we want a perfect emulation of what happens on a PC, first we must save the cursor position. Then, if the movement found on the Wheel counter is, let's say 3, this indicates an up movement, so first the string "B1, B0, B0, B0"(shift+up, up, up, up) has to be printed to the Editor channel. After that, 3 is taken from the Y coordinate of the cursor saved position(but never below 1, and for the down max position we take the size of the video page). Finally the escape sequence "1D,3D,20+Y,20+X" will be printed on the Editor channel, positioning the cursor exactly on the same place it was before.

To "print" a down scroll, we must send to the Editor channel "shift+down, down, down, etc" and then the cursor positioning escape sequence.

Always after a click or scroll events, their respective flags have to be reset, but in the case of the scroll, also the Wheel counter has to be put to 0.
« Last Edit: 2017.July.31. 15:47:11 by gflorez »

Online gflorez

  • EP addict
  • *
  • Posts: 2585
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 52.0 Firefox 52.0
    • View Profile
Re: Universal Mouse Driver
« Reply #181 on: 2019.May.29. 15:45:19 »
The Mouse driver now has SimbiFace3 USB mouse support. Only the three normal buttons and wheel.

It can be selected by the usual way ":VAR 189 7".

Offline pear

  • EP lover
  • *
  • Posts: 771
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 67.0 Firefox 67.0
    • View Profile
Re: Universal Mouse Driver
« Reply #182 on: 2019.May.29. 18:24:07 »
Oh, cool.
I think I'm beginning to want to have this interface :D

Online gflorez

  • EP addict
  • *
  • Posts: 2585
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 66.0 Firefox 66.0
    • View Profile
Re: Universal Mouse Driver
« Reply #183 on: 2019.May.29. 18:55:52 »
Your EnterMice is a better option for me.... But this USB HID port comes included on the SF3 as a gift, and I hate non working things....