fuego Posted January 10, 2010 Share Posted January 10, 2010 Hi! How can a person detect if user has turned the mouse wheel? It will play an important role on our RTS game project. I have seen no related function with mouse wheel in the engine, should we write a special mouse callback function for native Windows mouse API? Thanks Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 10, 2010 Share Posted January 10, 2010 for a C++ project I used MouseZ() Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Niosop Posted January 10, 2010 Share Posted January 10, 2010 MouseZ() is what you want. It was not exposed to Lua in an earlier version, but I haven't tried it in a long while, I'll have to remember to try it out again in the morning. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
fuego Posted January 10, 2010 Author Share Posted January 10, 2010 Thanks! It worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.