diff --git a/nxbt/web/static/js/main.js b/nxbt/web/static/js/main.js index c38af91..bdd031a 100644 --- a/nxbt/web/static/js/main.js +++ b/nxbt/web/static/js/main.js @@ -394,6 +394,11 @@ function recreateProController() { socket.emit('create_pro_controller'); } +function restartController() { + shutdownController(); + setTimeout(recreateProController, 2000); +} + function checkForLoad() { if (STATE[NXBT_CONTROLLER_INDEX]) { controller_state = STATE[NXBT_CONTROLLER_INDEX].state diff --git a/nxbt/web/templates/index.html b/nxbt/web/templates/index.html index 295156f..c11d3da 100644 --- a/nxbt/web/templates/index.html +++ b/nxbt/web/templates/index.html @@ -197,6 +197,7 @@

Controller Commands

+

Controller Macro