Browser based game with input from arcade sticks and buttons

im new here and for a project i want to build a browser based game on a raspberry pi 2/3 using arcade sticks and buttons ( and if i have the cash even a steering wheel like thrust master). the question i had today is will the broswer beable to pick up the signals automatically or do i have to setup. the raspberry shall be running a linux version os.

or should i build the game for linux and will that solve the issue about connectivity

You should build the game for Android and install Android on the Pi. That is currently the only way to run Unity games on a Pi.

Unity’s Linux player supports x64 only and the Raspberry Pi processor is ARM. Unity’s Android player fully supports ARM.