开发者

Is there a way to distinguish mice in JavaScript?

开发者 https://www.devze.com 2023-04-10 04:49 出处:网络
I am wanting to hook up several mice - each one used for different types of input.Is there a way in JavaScript to distinguish between each mouse?

I am wanting to hook up several mice - each one used for different types of input. Is there a way in JavaScript to distinguish between each mouse?

I know that JS may not seem like the right language for this, but I want to use o开发者_运维技巧ne mouse for web navigation, and the other for Google-earth navigation. Because the Google-API is already using JS, I figured I try to keep all the code together.


This is not possible with JavaScript. The JS would have to have low-level access to the clients machine to make this type of distinction. Obviously, this would be a huge security risk.

0

精彩评论

暂无评论...
验证码 换一张
取 消