1
Window / [2.0] Mouse Wheel
« on: June 21, 2013, 02:52:38 am »
Hello, I want to use mouse wheel but when I type:
mouse_wheel is always 0. How to handle mouse scrolling? I am using Windows 7 and Microsoft Wireless Mobile Mouse 3500.
EDIT: It sometimes change to 1 but I need to move mouse wheel very fast. Is there any way to detect slow mouse wheel movement?
int mouse_wheel;
if (event.type == sf::Event::MouseWheelMoved)
{
mouse_wheel = event.mouseWheel.delta;
}
if (event.type == sf::Event::MouseWheelMoved)
{
mouse_wheel = event.mouseWheel.delta;
}
mouse_wheel is always 0. How to handle mouse scrolling? I am using Windows 7 and Microsoft Wireless Mobile Mouse 3500.
EDIT: It sometimes change to 1 but I need to move mouse wheel very fast. Is there any way to detect slow mouse wheel movement?