XNA/MonoGame - scroll w myszce.

0

Witam, czy ktoś wie jak ogarnąć scrollowanie ? Dokładniej to mam camere 2D i chce po prostu by zoomowanie było poprzez scroll w myszce, ale nie wiem jak mam ogarnąć te wartości zwracane przez Mouse.GetState().ScrollWheelValue i jak odpowiednio do nich zmieniać zoom w kamerze.

Dziękuje za pomoc.

1

Unlike standard Windows and WinForms mouse messages, which report a relative value for the scroll wheel, XNA reports the total scroll wheel value accumulated over the length of a game's execution. To process a wheel movement, you must compare the previous frame's wheel value to the current wheel value.

http://stackoverflow.com/questions/18321372/xna-zoom-using-mouse-scroll-wheel

0

Dziękuje @spartanPAGE wszystko już jasne.
A tak na marginesie, wie ktos jak zbindowac klawisze w VS 2015 Enterprise, potrzebuje zmienic step over w debugowaniu na jakis inny klawisz, bo na F10 mam zmiane monitora na lapku...

1

Dzięki !

1 użytkowników online, w tym zalogowanych: 0, gości: 1