Hi - I am trying to control the rotation of a virtual bicycle in the Unreal Game Engine using some form of Arduino sensor. The speed of the virtual cyclist is controlled by the users heart rate while they cycle on a stationary bike. The handlebars on the real bike can be rotated slightly so I'm trying to think of a sensor type for picking up this rotation. It doesn't need to be a 'level of rotation' it just needs to let the game engine know is left or is right (these will be mapped to the keyboards 'a' and 'd' keys which currently control bike rotation.
Thought so far....
A motion sensor is no good as it would switch off even if the wheel was still turned.
A potentiometer would be too flimsy to take the weight of the bike.
I was thinking of maybe using two distance sensors but is there a simpler method that would replicate something like a keyboard hack...turning the wheel left would close a circuit that would trigger the letter 'a' turning the wheel right would close a circuit that would trigger the letter 'd' ?
Any advice would be great.