Log In  

This is sort of out of left field, but I think it would be really neat to have built-in vibration support - specifically for use in mobile web browsers which support the web vibration API.

That might have limited application in general, but in any case I'd love to be able to hack this in for my own game. I'm checking out the possibility of using dset() in the game in combination with reading the indexedDB storage in the web browser to pass messages from Lua land to JavaScript land, which could trigger different types of vibrations depending on game state.

My main trouble right now is that I'm having trouble parsing the information stored in IndexedDB ... it's pretty esoteric. It might be some kind of binary format I don't understand.

P#51305 2018-04-04 14:48 ( Edited 2018-04-04 19:33)

Oh oh I have good news for you :D There is a much easier way to communicate data to the javascript of the page: the thing you are looking for is GPIO. You can easily access the GPIO "pins" from javascript. Check the "GPIO" section of the manual.

P#51306 2018-04-04 15:29 ( Edited 2018-04-04 19:30)

Yo! nice :) thanks a lot!

P#51307 2018-04-04 15:33 ( Edited 2018-04-04 19:33)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 15:43:29 | 0.005s | Q:13