mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Looks like WHEEL_DELTA is defined for win and osx, but not linux. Retooling to utilize a $pref instead, as that will let the scroll speed be modifiable for any projects that need it.
This commit is contained in:
parent
3aba4a7259
commit
8248ecdeac
|
|
@ -434,7 +434,7 @@ void PlatformWindowSDL::_triggerMouseLocationNotify(const SDL_Event& evt)
|
|||
|
||||
void PlatformWindowSDL::_triggerMouseWheelNotify(const SDL_Event& evt)
|
||||
{
|
||||
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y * WHEEL_DELTA);
|
||||
wheelEvent.trigger(getWindowId(), 0, evt.wheel.x, evt.wheel.y * Con::getIntVariable("$pref::Input::MouseWheelSpeed"));
|
||||
}
|
||||
|
||||
void PlatformWindowSDL::_triggerMouseButtonNotify(const SDL_Event& event)
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ $pref::Input::KeyboardEnabled = 1;
|
|||
$pref::Input::MouseEnabled = 1;
|
||||
$pref::Input::JoystickEnabled = 0;
|
||||
$pref::Input::KeyboardTurnSpeed = 0.1;
|
||||
$pref::Input::MouseWheelSpeed = 120;
|
||||
|
||||
$sceneLighting::cacheSize = 20000;
|
||||
$sceneLighting::purgeMethod = "lastCreated";
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ $pref::Input::KeyboardEnabled = 1;
|
|||
$pref::Input::MouseEnabled = 1;
|
||||
$pref::Input::JoystickEnabled = 0;
|
||||
$pref::Input::KeyboardTurnSpeed = 0.1;
|
||||
$pref::Input::MouseWheelSpeed = 120;
|
||||
|
||||
$sceneLighting::cacheSize = 20000;
|
||||
$sceneLighting::purgeMethod = "lastCreated";
|
||||
|
|
|
|||
Loading…
Reference in a new issue