简体   繁体   中英

HTA Gamepad API (or alternatives)

I am building an game launcher app (similar to Steam Big Picture) using HTA and I'd like to be able to control this app using my X360 controller. One way to do it is to use Xpadder and emulate keyboard presses, but since MS Edge has a native support of Gamepad API, I wonder whether there is a way to enable it for HTA (since for example flexboxes can be enabled for HTA).

Or.. if it's not possible, are there any alternatives for HTA? That means something I can write in HTML5+CSS3+Javascript, have it start in fullscreen and have it launch .bat files on my computer without asking for any permissions?

Judging by this answer to a similar- ish question ...

I suspect that an HTA would work in Windows 10, but only in IE9 mode. It would be a major shift if Microsoft built Edge with HTA support.

I would conclude you wouldn't be able to use the Gamepad API in a HTA because it uses the IE 9 rendering engine.

Your best bet is give it a try and test it for yourself.


Useful Links

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM