TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

HTML5 XBOX Controller in Firefox Nightly

29 点作者 boazsender将近 14 年前

5 条评论

wtallis将近 14 年前
The explanation of the analog stick axes needs clarification: "For example, the XBox wired controller has 4 axes (top to bottom, left to right, and two diagonals.)" What's a diagonal axis, if not a linear combination of the vertical and horizontal axes?<p>At minimum, for an Xbox-style controller, you should be seeing a vertical and horizontal axis for each of the two analog sticks, and an axis for each of the two analog triggers. From an original Xbox controller, you should also have six analog buttons (though they are usually treated as standard binary buttons).<p>Other than that, this looks pretty cool. Perhaps in a few years, we'll see stuff like this combined with WebGL to make an open-source, cross-platform gaming environment that goes way beyond the current crop of 2d Flash games.
评论 #2863243 未加载
评论 #2863533 未加载
iam将近 14 年前
1) It's a general joystick api, not just xbox.<p>2) You can't actually use an xbox controller with a computer (and hence with firefox) anyway without a USB cable. You could use a 360 controller, but not the first Xbox.
评论 #2863055 未加载
jimminy将近 14 年前
Yes. I was waiting for this, this is something I really wanted for one of my side projects.
cultureulterior将近 14 年前
Anyone know if there a tablet pressure/tablet pen direction api in browsers yet?
imjk将近 14 年前
Cool stuff you guys are doing over there at bocoup.