Welcome, Guest. Please login or register.


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

Offline IstvanV

  • EP addict
  • *
  • Posts: 4611
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #120 on: 2016.September.27. 11:40:33 »
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.

I do not really know what the problem might be then, it could be something specific to the memory expansion hardware. I suspected the timing, but the wait times in CM2000 seem to be correct. On a turbo machine (6 or 7.12 MHz), they could become too short, however.

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

Perhaps I tested a different (older) version of SWAP then? It checks the state of the buttons more than 18 ms after the last byte is received from the mouse. In other words, in each 50 Hz interrupt, it polls the buttons first without writing to port B7h (similarly to SymbOS before it was changed), and only after that it receives the X/Y motion bytes. But maybe the timeout for the buttons is longer?
« Last Edit: 2016.September.27. 11:48:10 by IstvanV »

Online pear

  • EP lover
  • *
  • Posts: 646
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #121 on: 2016.September.27. 12:08:21 »
Sorry, my fault :oops:
I looked exact the source code of Entermice. Only bits D0-D3 are cleared after 1.5 ms.
Button states are on bits D4 and D5, which are set or reset when done the next reading of the mouse, which is 20 ms.

With the code shows that if there is no further read PS/2 mouse, the states of the buttons on the bits D4 and D5 will remain unchanged. Is this defect?
I would have to do an additional watchdog, which resets the states of buttons after the end of polling the interface.
« Last Edit: 2016.September.27. 12:11:33 by pear »

Offline IstvanV

  • EP addict
  • *
  • Posts: 4611
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #122 on: 2016.September.27. 12:20:11 »
It would be interesting to test this program on the real machine, what happens when the mouse or EXT1 buttons are pressed?

* mbtntest.com (0.13 kB - downloaded 58 times.)

With the code shows that if there is no further read PS/2 mouse, the states of the buttons on the bits D4 and D5 will remain unchanged. Is this defect?

If that means the button states "stick" permanently on port B6h when polling is not requested (even after the buttons are released), then it could be a bug, if I understood it correctly. I guess it would be easy to clear them together with the other bits after 1500 us, like the emulator does now, but this would break some old programs. It could be limited to native mode, though, with the BoxSoft compatible mode left the same as before.
« Last Edit: 2016.September.27. 12:49:47 by IstvanV »

Online pear

  • EP lover
  • *
  • Posts: 646
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #123 on: 2016.September.27. 12:31:36 »
I think so. Should check it out.

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #124 on: 2016.September.27. 18:38:29 »
But maybe the timeout for the buttons is longer?

In practice it seems to be longer, as SWAP work "as is" perfectly on the real thing. Exactly the same that happened with SimbOS before fixing it, as you say.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4611
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #125 on: 2016.September.27. 19:14:40 »
Well, I am still not entirely sure exactly how it works on the real machine, but for now I will probably just map the mouse buttons as EXT1 fire 2 and 3 all the time. Which is not accurate, but at least it should not break programs.

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #126 on: 2016.September.28. 10:32:41 »
It would be interesting to test this program on the real machine, what happens when the mouse or EXT1 buttons are pressed?

I only see them working as I expected,: Main button(left) turns the screen to green, while the secondary button to  blue. Both pressed at the same time make the screen light blue.

On the EnterMice joystick port 1, the same happens but with fire 2 and 3. Joy1 Fire 1 and all the fires of joy2 don't paint the screen.

The buttons are interchangeable, if I press main mouse button + button 3 on the joystick port, the screen turns to light blue.

Is that right?

The Joystick buttons are hard-wired, while the mouse buttons need a change in the RTS line  to appear.
« Last Edit: 2016.September.28. 10:40:26 by gflorez »

Offline IstvanV

  • EP addict
  • *
  • Posts: 4611
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #127 on: 2016.September.28. 10:45:58 »
I only see them working as I expected,: Main button(left) turns the screen to green, while the secondary button to  blue. Both pressed at the same time make the screen light blue.

Does pressing the mouse buttons make the whole screen green or blue all the time? What the program does is that it toggles the RTS bit just below the status line every 50 Hz interrupt, and it shows the state of the three lowest bits of port B6h with row 0 selected on the border color (it is constantly updated by the main program). Also, toggling RTS is periodically disabled, for 16 frames it is active, then not for another 16 frames, then active again for 16 frames, and so on. Thus, depending on the implementation of the mouse interface, not all the screen may be colored, or it may periodically flash.

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #128 on: 2016.September.28. 11:09:51 »
If I maintain pressed the buttons, the screen is solid on all cases. But if I click quickly, the flicker happens.

Some times a sticky coloured screen remains less than a second even when I have already released the mouse buttons. This doesn't happens with the joystick buttons.

Do you want a video of it?

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #129 on: 2016.September.28. 11:38:47 »
Here you have the video. I have put the mouse against the screen to show you when I press the buttons.

I think it is not necessary another video of the joystick buttons.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4611
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 48.0 Firefox 48.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #130 on: 2016.September.28. 14:06:27 »
Here you have the video. I have put the mouse against the screen to show you when I press the buttons.

Thanks, I made some changes to the GitHub sources and SWAP works better now. Does the test program look the same with the joystick buttons?

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 49.0 Firefox 49.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #131 on: 2016.September.28. 14:57:14 »
Joystick buttons behave exactly the same.

Thanks to you for your efforts.

Online szipucsu

  • EP addict
  • *
  • Posts: 7097
  • Country: hu
  • OS:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 63.0.3239.84 Chrome 63.0.3239.84
    • View Profile
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: List of games that would work better controlled by a mouse.
« Reply #132 on: 2018.January.05. 10:11:39 »
I don't know if Music Box has already been mentioned but it would also work better with the mouse. However it uses character screen and the mouse movement would be "funny" with that pointer of square shape.

Online gflorez

  • EP addict
  • *
  • Posts: 2276
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 52.0 Firefox 52.0
    • View Profile
Re: List of games that would work better controlled by a mouse.
« Reply #133 on: 2018.January.05. 10:31:44 »
If the source exist I can try to implement the mouse control on the program, but may be it needs a deep rework, with new archive types and a colourful graphics screen. I haven't the skills for that, sorry.

On the other side, where is the link to MusicBox? I still hadn't use that program.


Edit: OK, found.
« Last Edit: 2018.January.05. 10:37:37 by gflorez »

Offline SlashNet

  • EP user
  • *
  • Posts: 324
  • Country: ua
  • Enterprise 128K | Cubietruck
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Vivaldi 1.95.1077.60 Vivaldi 1.95.1077.60
    • View Profile
    • Russian info about Enterprise
Re: List of games that would work better controlled by a mouse.
« Reply #134 on: 2018.April.02. 08:03:42 »
Enigma Force (Kmouse)
Release: 31.03.2018
Kmouse: Hood

INFO
Download