mirror of https://github.com/OpenTTD/OpenTTD
(svn r21982) -Add: Wheel scrolling to console.
parent
82f260e15f
commit
e9e6444138
|
@ -342,6 +342,11 @@ struct IConsoleWindow : Window
|
||||||
}
|
}
|
||||||
return ES_HANDLED;
|
return ES_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void OnMouseWheel(int wheel)
|
||||||
|
{
|
||||||
|
this->Scroll(-wheel);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
int IConsoleWindow::scroll = 0;
|
int IConsoleWindow::scroll = 0;
|
||||||
|
|
Loading…
Reference in New Issue