bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
128 stars 18 forks source link

Add gamepad support for PTZ control. #179

Open bp2008 opened 4 months ago

bp2008 commented 4 months ago

It seems that Firefox has lifted the secure context restriction for the gamepad API and webkit may soon remove their console warning about it: https://github.com/w3c/gamepad/issues/145

Therefore I should attempt to use the gamepad API for PTZ control and see if it can provide some value. It is possible the PTZ control APIs available to us will just be too clunky and laggy. Ken has indicated some interest in making improvements where possible, so I'll ask for the ability to specify the PTZ movement speed.

bp2008 commented 4 months ago

Added experimentally in UI3-272.

bp2008 commented 4 months ago

image

bp2008 commented 3 months ago

Zoom out/in got swapped.

I'm going to request that a different set of bits be used for zoom speed so that it can be controlled independently of pan/tilt.

UI3-273 uses this method of joystick control if you set the joystickDev variable to true in the developer console.

Last tested against BI 5.9.5.3.