85 Commits

Author SHA1 Message Date
4cb76dd1ee mai2: update all LED boards to use two boards 2025-03-02 00:01:45 +01:00
a1611afffc Mai2: Add touch and led15070 hook (#55)
In this PR, I have added the `mai2` touch and `led15070` hooks to provide an example for handling custom peripherals. This change allows users to implement the touch and `led15070` logic by writing appropriate `mai2io` scripts.

#### **Touch Hook**:
- The touch hook simulates touch points based on keyboard combinations. For example, to trigger the A1 touch point, the user must press the A and 1 keys on the keyboard. Input for the 1p requires Caps Lock to be off, while 2p requires Caps Lock to be on.
- The hook allows for independent control of whether device simulation is enabled for "1p" and "2p" and whether keyboard input mapping is enabled.
- **Note**: The current touch hook is not yet functional as it requires modifications to the `capnhook` for proper completion of the `sinmai` hook.

#### **LED15070 Hook**:
- This hook implements basic device simulation. Peripherals requiring lighting data should complete the logic as needed.
- **Note**: The LED data refresh can flood the console logs, so I’ve added a `DEBUG` flag to control whether the debug logging is enabled or not.

#### **Other Changes**:
- In certain versions of `sinmai`, key inputs for 1p and 2p can be directly read from the keyboard without requiring simulation via the `amdaemon io4` hook. I’ve added a switch to control this behavior to prevent redundant input.
- **Benefit**: This ensures that key input is only read when `sinmai` is in the foreground.

If you'd like to learn more about the touch and `led15070` features, my research findings are available here:
[Mai2Touch](https://github.com/Sucareto/Mai2Touch)

Co-authored-by: Sucareto <28331534+Sucareto@users.noreply.github.com>
Reviewed-on: TeamTofuShop/segatools#55
Co-authored-by: Mahuyo <mahuyo@noreply.gitea.tendokyu.moe>
Co-committed-by: Mahuyo <mahuyo@noreply.gitea.tendokyu.moe>
2025-02-16 12:49:58 +00:00
96bf8cab81 aime: add portNo to config 2024-12-23 21:49:24 +01:00
80d4902cfc remove 5gb wasted space by removing precompiled headers 2024-12-23 21:04:51 +01:00
c80f903cf8 Fix build with Microsoft Visual C++, Fix gfxhook and felica issue (#48)
I just wanna say that It is a SHAME that a Windows ONLY project was not able to build without MINGW
Also where's the missing `3mpxsc.h` in diva hook?

This also fixes the window size issue from hook_CreateWindowExA in gfxhook
And Fixes felica issue as described in #45

Reviewed-on: Dniel97/segatools#48
Reviewed-by: Dniel97 <dniel97@noreply.gitea.tendokyu.moe>
Co-authored-by: GEEKiDoS <geek_ds@foxmail.com>
Co-committed-by: GEEKiDoS <geek_ds@foxmail.com>
2024-11-11 16:28:24 +00:00
259b763a13 idz: add ffb and led emulation 2024-09-30 23:10:16 +02:00
c06bb408e7 idac: add ffb emulation 2024-09-30 18:50:46 +02:00
bb773a63ce Merge pull request 'Kemono Friends support / 32-bit CHC300 support' (#36) from Haruka/segatools:kemonofr into develop
Reviewed-on: Dniel97/segatools#36
2024-09-21 15:12:05 +00:00
cdfd3bf655 kemono: not sure why that went missing 2024-09-20 11:09:21 +02:00
3eef5dd209 kemono: fix LED board check error 2024-09-12 13:25:38 +02:00
068651b6fa kemono: add support 2024-09-11 13:31:23 +02:00
824bc9abda default vfd port number to zero (use game-specific port) 2024-08-23 17:24:47 +02:00
e6794807a6 add default port fallback for vfd 2024-08-23 17:20:05 +02:00
54cbbffae9 add almost full vfd implementation 2024-08-23 16:30:22 +02:00
ac0f9f0587 aime firmware fix, mu3 keybinding fix 2024-08-21 15:13:09 +02:00
ccb655a12b Merge pull request 'Add configurable debug logging' (#22) from Bottersnike/segatools:develop into develop
Reviewed-on: Dniel97/segatools#22
2024-07-01 18:42:01 +00:00
7e5e0f132e idac: 837-15070 board implementation 2024-06-23 21:21:57 +02:00
7d3cab256b Add configurable debug logging 2024-06-20 01:22:01 +01:00
9fe98b227b mu3: added lights hook 2024-05-12 22:06:37 +02:00
b77ce7b457 io3: added basic rotary input support 2024-05-12 19:39:56 +02:00
482a6e530a print vfd message 2024-04-30 02:19:10 +08:00
47a65e5e51 fixed aime LED firmware 2024-03-17 14:20:13 +01:00
451a7ec49d added VFD toggle to config 2024-02-06 12:34:11 +01:00
0affc96e3e small optimizations 2024-01-16 17:54:06 +01:00
d4372fa5c2 chuniio: use HRESULT instead of int for chuni_io_led_init() 2023-12-21 00:45:41 +01:00
ac9b889d71 chusan/chuni: tower LEDs added 2023-12-19 14:40:02 +01:00
8ebdf67d6e chuni/chusan: added LED output to DLLs (will break most DLLs)
Credits: somewhatlurker, skogaby
https://dev.s-ul.net/skogaby/segatools/-/blob/ongeki-15093/
2023-12-19 12:48:33 +01:00
ad154a83e5 chusan: fixed dipsw settings, added aimeio DLL loading 2023-12-17 19:43:00 +01:00
3dd6054a1e chusan, fgo, mu3: fixed LED 15093 board 2023-12-03 21:34:38 +01:00
793417e891 added new aime card reader generation
- Added new aime generation: 837-15286 and 837-15396
- New config setting `[aime] gen=3` for 837-15396
- Updated LED information for card reader
- Updated all games with the needed reader generation?
2023-12-03 18:45:42 +01:00
8b1d0cfefa LED board improvements and cleanup 2023-11-25 23:00:05 +01:00
25562e37f9 nusec: fixes keychip not found error 0949 2023-11-02 23:32:13 +01:00
f6e961d4f4 Removed -f from start.bat and fixed idz 2023-08-29 00:49:58 +02:00
608c9ac1a6 chusan, cm, mai2, mu3: Added dipSw support and highBaudrate AiMe 2023-08-15 17:28:19 +02:00
2a6a8bf8b2 chusan: added chusanhook, led board fix, config added
credits go to @domeori https://dev.s-ul.net/domeori/segatools/-/tree/mr-imports
2023-07-14 00:58:02 +02:00
08832ea140 Added wacca stub code 2023-02-13 03:07:36 -05:00
cd5ae172b8 board/io4.c: add configuration section to enable/disable emulation 2021-07-05 10:08:09 +00:00
26a69e1ea9 Fix format warnings for HRESULT 2021-06-17 01:39:50 +00:00
Tau
0c7a9c87c0 Load and bind aimeio at runtime 2021-06-13 11:27:01 -04:00
ce46262c00 board/io4.c: add system status fix for Ongeki 2020-05-21 00:58:24 +00:00
901cedce89 Unify LED command name for Diva/Chunithm slider 2019-12-29 22:48:35 -04:00
180dc3378a Diva: Fix slider detection & sensor order 2019-12-29 21:13:40 -04:00
Tau
f11a3cb657 board: Shift config structs around 2019-11-05 19:40:00 -05:00
Tau
fc345a46a7 board/sg-reader.c: Improve life cycle 2019-11-03 15:37:29 -05:00
Tau
93fcdf8f6d board/io3.c: Add io3_to_jvs_node() accessor 2019-11-03 13:00:55 -05:00
Tau
879dc0bfb4 Use new iohook_open_nul_fd() API
Makes error handling more consistent
2019-11-03 11:02:54 -05:00
Tau
2b5bde7742 board: Naming convention change for "sg" bus 2019-10-26 18:25:04 -04:00
Tau
5ed6eaa203 Overhaul card reader emulation 2019-10-19 15:51:10 -04:00
Tau
bbbb6d08b0 board/vfd.c: Use dump_iobuf() instead of direct dump() 2019-10-13 13:35:43 -04:00
Tau
32c87ca37e board/io4.c: Include NT IOCTL header
Fixes non-PCH build.
2019-09-01 11:48:32 -04:00