This week I did some changes to the gamepad web-component library, It now supports mouse and keyboard inputs.
Everything can be configured and defined declaratively in HTML, you can then use the element directly in code to read its inputs or just listen the the events triggered as you interact with it.
Here's an example or a common gamepad layout and its respective code.
I'll be publishing the code by next week.
#screenshotsaturday #gamedev #webdev #webcomponents #showmethecode #wip