diff --git a/xtrn/tw2/input.js b/xtrn/tw2/input.js index 217d2e2d544d422de0d2c529391082c6ad035d75..bbbd76004a608d4fffe404b607a03b4ad9c853e2 100644 --- a/xtrn/tw2/input.js +++ b/xtrn/tw2/input.js @@ -138,6 +138,14 @@ InputFuncMainLoop: } } + /* Look for a default value */ + if(pos==0) { + for(value in values) { + if(typeof(values[value])=='object' && values[value].def != undefined) { + matchval=values[value].def; + } + } + } while(pos > 0) { console.write('\x08'); pos--;