mirror of
https://github.com/supleed2/ELEC60013-ES-CW2.git
synced 2024-12-22 21:55:50 +00:00
21 lines
366 B
Plaintext
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 |