Removed IsDetectable(), it's no longer necessary
This commit is contained in:
parent
92b6a9800d
commit
6afcd6a3f3
|
@ -89,7 +89,6 @@ public:
|
|||
{
|
||||
public:
|
||||
virtual ControlState GetState() const = 0;
|
||||
virtual bool IsDetectable() { return true; }
|
||||
};
|
||||
|
||||
class Output : public IoControl
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue