theatron
2016-10-17 05:27:30 UTC
I've been experimenting with the mouse events today and im basically confused on how i can make this work the way i want it to. Whenever i scroll the mouse wheel up it literally only outputs the number 1. But when i trace tge mouses position it gives me alot more than just "1". Im trying to add a feature in my app that'll allow it to scroll up and down and how fast it'll scroll is based on how fast the wheels going(ex: Web Browsers).
Heres the code i had:
Code:
int y = 0;
void Update()
{
if(evt.type = SDL_MOUSEWHEEL)
{
cout << y << endl;
}
}
Is SDL 2 capable of the kind of mouse scrolling i mentioned? or am i doing it the wrong way :/ ?
Thanks
Heres the code i had:
Code:
int y = 0;
void Update()
{
if(evt.type = SDL_MOUSEWHEEL)
{
cout << y << endl;
}
}
Is SDL 2 capable of the kind of mouse scrolling i mentioned? or am i doing it the wrong way :/ ?
Thanks