Add config option to reverse the spell switching scroll direction

This commit is contained in:
Electroblob
2018-07-02 22:56:04 +01:00
parent af01beb583
commit 7c7a69c755
4 changed files with 16 additions and 3 deletions
@@ -101,10 +101,12 @@ public class WizardryControlHandler {
&& Wizardry.settings.enableShiftScrolling){
event.setCanceled(true);
int d = Wizardry.settings.reverseScrollDirection ? -event.getDwheel() : event.getDwheel();
if(event.getDwheel() > 0){
if(d > 0){
selectNextSpell(wand);
}else if(event.getDwheel() < 0){
}else if(d < 0){
selectPreviousSpell(wand);
}
}