RoleDiff: Add check in inputSwitch.