ELEC60013-ES-CW2/lib/knob/knob
2022-03-24 22:18:18 +00:00

21 lines
366 B
Plaintext

#ifndef KNOB_H
#define KNOB_H
class Knob {
private:
int rotation;
int minimum, maximum;
bool A, B;
bool rotPlusOnePrev, rotMinOnePrev;
public:
Knob(int minimum, int max);
Knob(int minimum, int max, int initialRotation);
int getRotation();
void updateRotation(bool ANew, bool BNew);
void changeLimitsVolume(int newMinimum, int newMaximum);
};
#endif