better use zero sensitive area to detect a missing (or inoperable) button,
because a missing <button> default to 0, which makes a lot of sense
This commit is contained in:
parent
1c27be1cb4
commit
beff0cef60
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale)
|
||||||
vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
|
vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
|
||||||
|
|
||||||
// button-less actions are fired initially, then fogotten
|
// button-less actions are fired initially, then fogotten
|
||||||
if (!node->hasValue("button")) {
|
if (!node->hasValue("w") || !node->hasValue("h")) {
|
||||||
for (i = 0; i < bindings.size(); i++) {
|
for (i = 0; i < bindings.size(); i++) {
|
||||||
FGBinding b(bindings[i]);
|
FGBinding b(bindings[i]);
|
||||||
b.fire();
|
b.fire();
|
||||||
|
|
Loading…
Reference in a new issue