How does the mai2 touch emulation work? #10

Closed
opened 2024-03-15 03:03:09 +00:00 by LineCat · 2 comments

I personally want to achieve using keyboard to activate each touch sensors as a other former project is able to do this, and create something based on this, but I have no idea about how the current code is working. Great thanks if you could talk a little about it, or I have to try to emulate touch event in Windows.

I personally want to achieve using keyboard to activate each touch sensors as a other former project is able to do this, and create something based on this, but I have no idea about how the current code is working. Great thanks if you could talk a little about it, or I have to try to emulate touch event in Windows.
Owner

Great question actually, as the touch sensors are not emulated by segatools at all and are handles by the DebugInput class inside the Sinmai_Data/Managed/AssemblyCSharp.dll file and require the file mai2.ini set to:

[Debug]
Debug=1

The biggest Problem actually is hooking the COM ports in Unity Games, thats why you have to use com0com or some other software to redirect the SerialPorts, f.e. you can find an implementation in the MaiDXR program here: https://github.com/xiaopeng12138/MaiDXR/blob/main/Assets/Scripts/IOs/Serial/SerialManager.cs.

Great question actually, as the touch sensors are not emulated by segatools at all and are handles by the DebugInput class inside the `Sinmai_Data/Managed/AssemblyCSharp.dll` file and require the file `mai2.ini` set to: ```ini [Debug] Debug=1 ``` The biggest Problem actually is hooking the COM ports in Unity Games, thats why you have to use com0com or some other software to redirect the SerialPorts, f.e. you can find an implementation in the MaiDXR program here: [https://github.com/xiaopeng12138/MaiDXR/blob/main/Assets/Scripts/IOs/Serial/SerialManager.cs](https://github.com/xiaopeng12138/MaiDXR/blob/main/Assets/Scripts/IOs/Serial/SerialManager.cs).
Author

Thanks for giving me an entry point for discovery! It is quite useful for me to working on it.

Thanks for giving me an entry point for discovery! It is quite useful for me to working on it.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Dniel97/segatools#10
No description provided.