Commit e2d7014e authored by Michael Ochmann's avatar Michael Ochmann
Browse files

credits now speed up on leftclick; they speed even more up on rightclick, though

parent 2be07a4e
......@@ -54,7 +54,9 @@ namespace gdw {
this->rootElement->y(this->uiManager->getElementById("credits")->height());
this->topMargin = 0.5f/100*5;
}
this->rootElement->y(this->rootElement->y() - 0.001);
double scrollAmount = this->engine_.input().isDown(inputMapping::beam_normal) ? 0.005 : 0.001;
scrollAmount = this->engine_.input().isDown(inputMapping::beam_inverse) ? 0.010 : scrollAmount;
this->rootElement->y(this->rootElement->y() - scrollAmount);
}
void credits_state::on_exit() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment