-
Notifications
You must be signed in to change notification settings - Fork 557
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
Feature Request: Taito Paddle with analog value #626
Comments
Controlling the Taito Paddle using an analog control already exists in the Mac version. However, this only controls the rate of positive/negative change in the paddle value, which is how the Taito Paddle actually works. You cannot directly correlate the Taito Paddle position (since it does not use positions) with an absolute position on the screen. As for controlling the paddle using the mouse, you probably want to keep that free for emulating the NDS stylus. If you really really really still want to control the paddle using the mouse, you may find that writing a LUA script may help, but this only works in the Windows version. |
Got it. |
I can only describe how the Mac version works by describing how the Taito Paddle works. All the paddle does is maintain a single unsigned 16-bit value (0 to 65535). It is up to the game to figure out how to interpret that value. Most games, such as Space Invaders Extreme, check for value changes, where the higher the rate of change, the faster your shooter moves. Positive changes move your shooter right, while negative changes move your shooter left. In other words, most games DO NOT map the paddle value to an absolute position on the screen. The Mac and Windows versions (and maybe Linux versions) all allow digital control of the paddle, where the rate of change in the paddle value are set to a fixed value. By default, the 'O' key is set with a rate of -5 per frame, while the 'P' key is set with a rate of +5 per frame. Of course, these rates can be changed by the user, but because they are digital controls, the rate change can only be a single fixed value at any one time. But analog controls are better in this case, since one can read the analog control and adjust the rate on the fly. The Mac version's analog control was designed around standard analog thumbsticks. If you were to assign the X-coordinate of the thumbstick, then hard-left would correspond to a maximum negative rate change, hard-right would correspond to a maximum positive rate change, while center would a zero rate change. As you can see in the screenshot above, the user can change the sensitivity of the analog control depending on the game so that lower sensitivity reduces the rate change while higher sensitivity increases the rate change. With all of this said, there are only a few ways I can see a mouse controlling the paddle:
I personally have no interest in implementing any of these solutions, as the current analog implementation in the Mac version works very well with analog thumbsticks. However, I might reconsider implementing the mouse wheel solution for the Mac version if I ever get to it, as it is quite elegant. I have no plans or interest in implementing any of these things for Windows or Linux. |
Option 1 looks like the best solution. Sadly I don't have a mac and I can only use windows and linux. An real, physical device, can be made with just a arduino and a rotary encoder. This device can output like a usb mouse with a wheel. Anyway, thanks for taking your time. |
Hi,
Would be possibible to map the paddle position to an analog stick position?
Or even better, use a mouse to change it's value.
Thanks.
The text was updated successfully, but these errors were encountered: