Removed IsDetectable(), it's no longer necessary

This commit is contained in:
ergo720 2020-09-19 20:33:59 +02:00
parent 92b6a9800d
commit 6afcd6a3f3
2 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,6 @@ public:
{
public:
virtual ControlState GetState() const = 0;
virtual bool IsDetectable() { return true; }
};
class Output : public IoControl

View File

@ -186,7 +186,7 @@ InputDevice::Input* InputWindow::DetectInput(InputDevice* const Device, int ms)
Device->UpdateInput();
std::vector<bool>::iterator state = initial_states.begin();
for (; i != e && s == e; i++, state++) {
if ((*i)->IsDetectable() && (*i)->GetState() > INPUT_DETECT_THRESHOLD) {
if ((*i)->GetState() > INPUT_DETECT_THRESHOLD) {
if (*state == false) {
// input was not initially pressed or it was but released afterwards
s = i;