1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

dead zones are now configured via number dialog

This commit is contained in:
Zeno Rogue 2019-06-25 20:03:14 +02:00
parent b1d8388795
commit 925d06a2b8

View File

@ -341,12 +341,8 @@ struct joy_configurer {
if(sym) { if(sym) {
char xuni = uni | 96; char xuni = uni | 96;
if(xuni >= 'a' && xuni < 'a' + numaxeconfigs) { if(xuni >= 'a' && xuni < 'a' + numaxeconfigs) {
if(configdead) { if(configdead)
int& dz = (*dzconfigs[xuni - 'a']); dialog::editNumber( (*dzconfigs[xuni - 'a']), 0, 65536, 100, 0, XLAT("Configure dead zones"), "");
dz += int(shiftmul * 100);
if(dz < 0) dz = 0;
if(dz > 65000) dz = 65000;
}
else { else {
int v = (*axeconfigs[xuni - 'a']); int v = (*axeconfigs[xuni - 'a']);
v += (shiftmul>0?1:-1); v += (shiftmul>0?1:-1);