Software Support > GroovyMAME
Lightgun flasher over groovymame in fullscreen
Rion:
--- Quote from: phasermaniac on September 12, 2022, 01:01:42 pm ---Thanks Psakhis, this is very nice. I could test it a little on my crt:
Overall it works perfect. No missing shots.
I was looking your code but couldn't figure out: do you raise brighness and then the button press instantly? without any delay between them?
Though, I'm experiencing two problems:
1. "Brightness frames" is appied on release, but I think it would be better on press, as games like time crisis, pointblank... doesn't need the flashing while the whole button press, and so it would be far less noticeable.
2. I have not tested this with two guns (absolute mice, rawinput), but I tested a little more in my normal pc with a mouse, and when mapped two flashers, they seens to conflict as one of them does nothing and the other sets the new brightness but won't return to normal level.
2b. What would happen if a flasher button is press while another is flashing? I couldn't test this because of the problem described above, but I think It should not add brightness level, but reinitialize the timer.
--- End quote ---
All of these are very good points. 👍
There is always room for improvements.
Thanks Psakhis for the update to gamma and contrast 👍
psakhis:
--- Quote from: phasermaniac on September 12, 2022, 01:01:42 pm ---1. "Brightness frames" is appied on release, but I think it would be better on press, as games like time crisis, pointblank... doesn't need the flashing while the whole button press, and so it would be far less noticeable.
2. I have not tested this with two guns (absolute mice, rawinput), but I tested a little more in my normal pc with a mouse, and when mapped two flashers, they seens to conflict as one of them does nothing and the other sets the new brightness but won't return to normal level.
2b. What would happen if a flasher button is press while another is flashing? I couldn't test this because of the problem described above, but I think It should not add brightness level, but reinitialize the timer.
--- End quote ---
By default gain is applied only on frames where button is pressed; for apply gain on release, you need to set frames > 1.
Interesting behaviour of two guns, i hadn't even considered it, i think about it!
phasermaniac:
--- Quote ---By default gain is applied only on frames where button is pressed; for apply gain on release, you need to set frames > 1.
--- End quote ---
Yes, I understand that.
What I mean is this way the flashing is very annoying. Bear in mind there are games where you do rapid fire, or in 2p games, many shots are fired.
I think it would be better that you can set an fixed amound of brighten frames from the press, and before this, return to default brightness, regardless if button is still pressed or released
I have been messing with your code to change this myself but I can't. Any advice to achieve it? so I can test and tell if it works?
Thanks
psakhis:
For example, if you set 32 frames, will be more than 25 frames with gain applied after button is pressed regardless if button is released.
The "counter" of this frames is set to 0 when button is pressed, i understand you want a fixed number of frames regardless button is pressed or released?
This is posible and easy to add to plugin.
phasermaniac:
yes thats it.
I tired but I don't understand the whole code.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version