Make mouse buttons work again.
This commit is contained in:
parent
8a08507282
commit
8cab5f9e60
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ void FGMouseInput::init()
|
|||
m.mode_node->setIntValue(0);
|
||||
}
|
||||
for (j = 0; j < MAX_MOUSE_BUTTONS; j++) {
|
||||
buf.clear();
|
||||
buf.seekp(ios_base::beg);
|
||||
buf << "/devices/status/mice/mouse["<< i << "]/button[" << j << "]";
|
||||
m.mouse_button_nodes[j] = fgGetNode(buf.str().c_str(), true);
|
||||
m.mouse_button_nodes[j]->setBoolValue(false);
|
||||
|
@ -150,7 +150,7 @@ void FGMouseInput::init()
|
|||
m.modes[j].buttons = new FGButton[MAX_MOUSE_BUTTONS];
|
||||
std::ostringstream buf;
|
||||
for (k = 0; k < MAX_MOUSE_BUTTONS; k++) {
|
||||
buf.clear();
|
||||
buf.seekp(ios_base::beg);
|
||||
buf << "mouse button " << k;
|
||||
SG_LOG(SG_INPUT, SG_DEBUG, "Initializing mouse button " << k);
|
||||
m.modes[j].buttons[k].init( mode_node->getChild("button", k), buf.str(), module );
|
||||
|
|
Loading…
Add table
Reference in a new issue