1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 03:09:59 +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) {
char xuni = uni | 96;
if(xuni >= 'a' && xuni < 'a' + numaxeconfigs) {
if(configdead) {
int& dz = (*dzconfigs[xuni - 'a']);
dz += int(shiftmul * 100);
if(dz < 0) dz = 0;
if(dz > 65000) dz = 65000;
}
if(configdead)
dialog::editNumber( (*dzconfigs[xuni - 'a']), 0, 65536, 100, 0, XLAT("Configure dead zones"), "");
else {
int v = (*axeconfigs[xuni - 'a']);
v += (shiftmul>0?1:-1);