-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touchpanel Support #1352
Touchpanel Support #1352
Conversation
Disregard the ARM32/ARM64 build errors, they're my fault. |
+1 on changing GunListener's name.
On that vein, I was thinking that |
I was thinking from the perspective of the games which use them. The data sent by the Lightguns and Touchpanels are in essence screen position input data, both of which are sent back from IO board to the machine continuously. While there are exceptions (TCR4 with its IR lightguns), and actual hardware is analog, it doesn't beat the fact that all it really does is tell the game where the player is pointing on the screen. Which is why I suggested |
I'd prefer system over games but it makes total sense! Here I thought that there were some JVS driving games use the analog channel for the steering wheel data, but alas, I reserched a lil' bit and it seems that there are no games that do so on the S2X6, so... |
Thanks for this! Lemme do some tests to make sure everything works fine, but this looks sensible. |
Working great! Probably want to add a check here to prevent fullscreen mode to be toggled: https://github.com/jpd002/Play-/blob/master/Source/ui_qt/mainwindow.cpp#L829 Also, did you manage to enable offline mode with this? I tried it, but I couldn't get it to work using the instructions provided in the official guide. |
(By the way, I was wrong: There IS one game (games?) that uses the Analog channel: Taiko no Tatsujin. But it's already being managed by the DRUM input type, so...) |
Right, I'll add it in the next push.
I did, you just have to press the service switch, then enter switch and then test switch. After that you'll be in the seemingly normal test menu. Press anywhere on the screen for more than 10 seconds, then a Game Mode label will appear above coin options. In there you can set the operation mode to offline or online. It should look like this. |
Thanks for this and for the confirmation that Offline mode can be enabled! |
Implements touch panel functionality used in games such as The Idolm@ster, Minna De Kitaeru Zenno Training (ZNT), Druaga Online, and Dragon Chronicle, and allows the player to set The Idolm@ster to Offline mode (Doesn't bypass shutter and reader/writer check). As of now, only Idolm@ster has been tested to work as ZNT, Druaga and Dragon Chronicle doesn't boot at the moment.
Sets m_jvsGunPosX to 0xFFFF upon mouse release, otherwise the game will register the last clicked position as an input.
ReleaseTouchPosition() was put into GunListener.h for ease of merging, perhaps renaming the file to ScreenPositionListener would be better?