Controller Rumble Support?
Moderator: GZDoom Developers
-
-
- Posts: 10773
- Joined: Sun Jul 20, 2003 12:15 pm
Re: Controller Rumble Support?
Add an A_Rumble and let folks opt into it as they please. Someone will create a patch for the original weapons, and while it's not quite native support, I dunno what can be done about that without entering bad-assumption-ville.
-
- Posts: 474
- Joined: Fri Jul 18, 2008 12:27 pm
Re: Controller Rumble Support?
A_Rumble is probs the best place to start. However, how about use a default setting of whenever the player moves but is not input based. that would cover damage, earthquake, and other external sources, as well as other obvious ones like A_recoil.
-
- Posts: 131
- Joined: Wed Nov 30, 2016 12:51 am
- Graphics Processor: nVidia with Vulkan support
Re: Controller Rumble Support?
Well, I think for one, we should definitely leave it to the modder to have as much flexibility as possible, therefore not hardcoding any specific actions to automatically make the controller rumble (unless there are some chosen defaults that can be altered in the options, which are talked about later).
It would most definitely be tremendously cool to have something very in-depth such as both the duration and intensity of the rumble for the action function.
Another thing that comes to my mind as an idea is something far more vague, which is rumble intensity based on distance! So if you have an explosion nearby, it will be a small shake, but then when there is an explosion that is very close to the player, then it will viciously rumble. Though again, the modder should have complete control over the intensity/duration, and such.
In conclusion, I feel as if all of this can be split up in two, so that there is a virtual action function attached to the player, to make certain actors trigger the rumble (such as the idea of distance-based stuff), and then the action function can be for weapons and items (just call it in the states). I suppose the virtual function can have defaults, such as pre-existing ones, and then the user can choose intensity within the options.
It would most definitely be tremendously cool to have something very in-depth such as both the duration and intensity of the rumble for the action function.
Another thing that comes to my mind as an idea is something far more vague, which is rumble intensity based on distance! So if you have an explosion nearby, it will be a small shake, but then when there is an explosion that is very close to the player, then it will viciously rumble. Though again, the modder should have complete control over the intensity/duration, and such.
In conclusion, I feel as if all of this can be split up in two, so that there is a virtual action function attached to the player, to make certain actors trigger the rumble (such as the idea of distance-based stuff), and then the action function can be for weapons and items (just call it in the states). I suppose the virtual function can have defaults, such as pre-existing ones, and then the user can choose intensity within the options.
Re: Controller Rumble Support?
Let's resurrect this one. Anyone else interested in force feedback in 2021? Just asking. There exists something called QuestZDoom that claims to have haptic feedback as a feature, and is running a version of LZDoom. Anyone have the hardware to test this one? Maybe it could be a help in showing how force feedback could be implemented?
-
-
- Posts: 17468
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Controller Rumble Support?
Point me to the source code of QuestZDoom and I'll take a look. I will only be able to implement it for XInput because it's all the gear I have, but hopefully the foundation will be reusable for anyone else who wants to add it for non-XInput controllers.Ursula Bittingstadge wrote:Let's resurrect this one. Anyone else interested in force feedback in 2021? Just asking. There exists something called QuestZDoom that claims to have haptic feedback as a feature, and is running a version of LZDoom. Anyone have the hardware to test this one? Maybe it could be a help in showing how force feedback could be implemented?
-
- Posts: 25
- Joined: Wed Mar 24, 2021 6:18 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
Re: Controller Rumble Support?
https://github.com/DrBeef/QuestZDoom/tr ... mgw_mobileNash wrote:Point me to the source code of QuestZDoom and I'll take a look. I will only be able to implement it for XInput because it's all the gear I have, but hopefully the foundation will be reusable for anyone else who wants to add it for non-XInput controllers.
Hope this helps and already a massive thank you! Xinput is probably used by almost everyone who uses a controller these days so it's obviously the most important one
EDIT: Just remembered there was also a GZDoom build with some Xinput rumble functionality made by Edward850 but sadly the link was already dead