input: Consistently use enums for modifier/axis/state
For some reason we'd managed to have a mismatching header prototype and implementation. Fix this up to consistently use enums everywhere.
This was !1203 (merged), which I accidentally merged with !393 (merged) then had to revert in !1204 (merged).