Welcome, Guest. Please login or register.


Author Topic: List of games that would work better controlled by a mouse. (Read 34176 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #105 on: 2016.September.21. 15:45:19 »
I mean that on EnterMice the pressed status of a button can bounce, it is read as two clicks. EnterMice is faster than Enterprise, and the computer interprets a single click as two clicks or pressed.
« Last Edit: 2016.September.21. 15:48:24 by gflorez »

Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #106 on: 2016.September.21. 15:49:46 »
Hm, it is a real possibility, and how can we avoid it?

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #107 on: 2016.September.21. 17:12:43 »
To do it you must differentiate the real button status from the value you return to the game.

You must save internally on the mouse routine the physical  button state on the last mouse reading cycle. If it was pressed and now it is still on, you must return to the game the actual state as released. Internally you must check this every cycle, not putting the "external" status to pressed until at least 1 "internal" released+pressed cycle occurs.

With this you assure that all the clicks only last 1/50 seconds, being immediately released on the following cycle. Then, if the key is keep pressed(or a slow click), the game is not fooled to react to two clicks, as it thinks it is already released.

Offline pear

  • EP lover
  • *
  • Posts: 825
  • Country: pl
  • Z80 only
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #108 on: 2016.September.21. 18:35:29 »
With this you assure that all the clicks only last 1/50 seconds, being immediately released on the following cycle. Then, if the key is keep pressed(or a slow click), the game is not fooled to react to two clicks, as it thinks it is already released.
The "immediately" means exactly 1500 μs.

Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #109 on: 2016.September.22. 08:46:51 »
Normally this should not cause any problem, the keyboard fire could also be active in 2 or more next interrupt, and mouse fire is released until next interrupt if mouse button released.

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #110 on: 2016.September.22. 11:13:20 »
But it caused key bouncing on EDCW and SWAP...

If you study my injected mouse routine in SWAP you will see how I fixed it.

Actually I implemented two debouncing fixings on the mouse routine for the mouse clicking.

Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #111 on: 2016.September.22. 11:43:31 »
But it caused key bouncing on EDCW and SWAP...
Ok, I will insert a code which will check the previous state, and if it was pressed, then it will give up a non pressed value, until the mouse button released, and pressed again.

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #112 on: 2016.September.22. 12:46:53 »
Itsvan says that on SWAP the key click routine is out of the 1500 us timeout. Can it be the same problem with CM2000?.

I don't know how it can be tested...


Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14731
  • Country: hu
    • http://enterprise.iko.hu/
Re: List of games that would work better controlled by a mouse.
« Reply #113 on: 2016.September.22. 13:11:11 »
But the Swap is working on real machine... interesting!

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #114 on: 2016.September.22. 14:08:46 »
Yes, but the buttons didn't work well and I put a debouncing routine. Just like EDCW, the main mouse button remained pressed until I put a debouncing routine on it. Do you remember?

Offline geco

  • EP addict
  • *
  • Posts: 7113
  • Country: hu
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #115 on: 2016.September.26. 18:56:26 »
Here is the version where continuously pressed mouse button counts to one short press, the previous version processed the fire when it was released, so I do not think the cursor jumping will be disappeared. Could you please check it on real EP? It worked fine on Emu, but previous version also :D

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: List of games that would work better controlled by a mouse.
« Reply #116 on: 2016.September.26. 19:28:31 »
But the Swap is working on real machine... interesting!

So, on the real machine, the mouse buttons always work as the second and third fire buttons on EXT1, even without an RTS state change? That could be tested with this program.

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #117 on: 2016.September.26. 21:33:18 »
Could you please check it on real EP? It worked fine on Emu, but previous version also :D

Still the same annoying error on ChessMaster 2000 when on the real machine upgraded with 1MB, not on the 128k. May be IstvanV can aid here if I explain what happens.  It can be the memory so fast?

Please IstvanV, see this video.

The central menu works, but FILE and OPTIONS menus disappear when the pointer is over them. Also the pointer vanishes and surfaces near one of the side borders.

---------------

On SWAP, the contrary, the button works on the real thing  and XEP128 but not on EP128emu.
« Last Edit: 2016.September.26. 21:48:15 by gflorez »

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: List of games that would work better controlled by a mouse.
« Reply #118 on: 2016.September.27. 10:51:19 »
Still the same annoying error on ChessMaster 2000 when on the real machine upgraded with 1MB, not on the 128k. May be IstvanV can aid here if I explain what happens.  It can be the memory so fast?

The memory should not make a difference, CM2000 always disables wait states and the mouse routine runs in normal (not video) RAM even on 128K machines. I did not find any obvious errors in the code so far, but I may need to check more. Perhaps it is a problem specific to that particular 1 MB machine? Do others have the same issue with CM2000 on real machines?

In the emulator, I found only some minor issues, like the sensitivity, which also seems to be higher on the X axis, I think it is 4x X sensitivity and 2x Y compared to MOUSE.XR. Using NEG on the 8-bit motion values can also overflow, but only when the mouse is moved very fast (NEG(-128) = -128), so it does not really matter in practice.

Quote
On SWAP, the contrary, the button works on the real thing  and XEP128 but not on EP128emu.

The current version of ep128emu emulates the mouse buttons on EXT1 columns K and L only while the 1500 us timer is active. Using the actual joystick buttons works in SWAP, but perhaps the mouse buttons should be mapped to EXT1 fire 2 and 3 all the time, and not only for 1500 us after an RTS state change?

Another annoying "feature" of the input in SWAP, and I think this is not emulator specific, is that the pointer already needs to be moving in the direction of the swap at the moment when the button is clicked. That is, it is not possible to move the pointer to the tile that needs to be swapped, then press the button, and then while it is held down, move the pointer to the other tile to swap with. This, combined with the high sensitivity, makes controlling the game not very convenient. Using the external joysticks has the same issue, but interestingly not the keyboard/internal joystick.
« Last Edit: 2016.September.27. 11:15:13 by IstvanV »

Offline gflorez

  • EP addict
  • *
  • Posts: 3610
  • Country: es
    • Támogató Támogató
Re: List of games that would work better controlled by a mouse.
« Reply #119 on: 2016.September.27. 11:20:48 »
I have two EP, one issue4 and the other issue6, both extended with 1mb Saint memories.

If I start the EP in 128k or 64k modes the menus work normal. With all  the memory is when the error happens.

---------------------------------

About SWAP, I understand you, but EnterMice stops sending fire buttons if there are no changes on the RTS line.

Is for that I change RTS just before reading the K line for the Buttons. It is explained in the EnterMice wiki just at the end of the page.

The PS/2 buttons aren't hard wired connected to the EnterMice fire buttons.