Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gamepad support for PTZ control. #179

Open
bp2008 opened this issue Jul 8, 2024 · 3 comments
Open

Add gamepad support for PTZ control. #179

bp2008 opened this issue Jul 8, 2024 · 3 comments

Comments

@bp2008
Copy link
Owner

bp2008 commented Jul 8, 2024

It seems that Firefox has lifted the secure context restriction for the gamepad API and webkit may soon remove their console warning about it: w3c/gamepad#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
Copy link
Owner Author

bp2008 commented Jul 13, 2024

Added experimentally in UI3-272.

@bp2008
Copy link
Owner Author

bp2008 commented Jul 22, 2024

image

@bp2008
Copy link
Owner Author

bp2008 commented Aug 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant