Remove the RIDEV_NOTKEYS flag instead of override everything with RIDEV_NOLEGACY.
The RIDEV_NOLEGACY override approach was previously flawed in some games such as Doom (2016).
This approach is more secure and stable, and does not alter the other flags that are set for the device.