MozillaReality / gamepad-plus

INACTIVE - a superb library that extends the Gamepad API with super powers
https://mozvr.github.io/gamepad-plus/
MIT License
34 stars 5 forks source link

Document synthesised `keypress` events #65

Closed jalbam closed 3 months ago

jalbam commented 8 years ago

Hello,

I have reading the source code of the example and it seems you are using a property called "keyEventsEnabled". What is this for? The documentation does not talk about it.

Thank you very much in advance.

Cheers, Joan

cvan commented 8 years ago

That's to emulate keypress events so you don't have to have access to a physical gamepad; you can use your keyboard.

Yeah, sorry about that; the docs are basically non-existent. When we have time, we will update the docs, or if anyone else wants to, we'd appreciate any help. Thank you!

jalbam commented 8 years ago

Thank you very much for your reply.

I think I understand now. First, I thought it was for some platforms that fire keyboard events in their browser when the gamepad is used (as for example Nintendo DSi, Nintendo Wii, many SmartTV's, etc.). But this seems different. Correct me if I am wrong, please.

cvan commented 8 years ago

Yeah, that's correct. I'll keep this issue open (I've retitled the issue so it's properly tracked). Thanks for filing! And, let me know if you have any additional issues.

jalbam commented 8 years ago

Thank you very much for all. Maybe I could do the complete documentation if you want but I would need some more information to create it.

cvan commented 8 years ago

Thanks for the offer 😄 By no means should you feel obligated, but feel free to open a PR any time.

jalbam commented 8 years ago

That is ok. I will do it if I find some time. Thank you very much. See you!