Here is an OBS plugin that allows you to record the various inputs made during a gaming session.This feature can be useful for analyzing behaviors related to peripherals and design choices. You can then study them.
You can find the documentation on Github or on the OBS forum.