mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 20:00:20 +02:00
The size of the input_event struct differs between 32 bits applications and 64 bits applications. To deal with this, the kernel implements a compat variant for the input syscalls, but it's only enabled for 32 bit processes. In libkrunfw we're introducing a prctl that enables a 64 bit process to request the kernel to enable the compat variant for the input syscalls. This commit makes use of that interface for enabling/disabling the compat input variant as required. The visible effect is that input devices such as gamepads work properly on emulated 32 bit applications. Signed-off-by: Sergio Lopez <slp@redhat.com>