I (@kelleyk) have rebased the original patch by @jimdigriz (Alexander Clouter)
on the current upstream version of noVNC. This required the following changes:
- Rename keysym symbols.
- Convert use of _rfb_state to _rfb_init_state.
- Update state transition logic; fixes "old-style" ATEN auth detection.
- Fix conditional ordering so that we do not skip new-type ATEN iKVM detection.
- Fix assertion broken in test case broken by upstream changes.
- Convert arr.push(x) function calls to push(arr, x).
- Restore keyEvent and pointerEvent handlers before relevant test cases.
Mouse wheel event handling has now been standardised and has broad
support. Use this event rather than the older, non-standard ones.
At the same time fix up support for horisontal mouse wheel events.
This commit moves all the input-related files from `core/`
to `core/input/`, and renames a couple as relevant
(input.js --> input/devices.js, keyboard.js --> input/util.js).