• input.IsMouseDown(MOUSE_WHEEL_*)
    0 replies, posted
[CODE]function MODULE:Think() if (input.IsMouseDown(MOUSE_WHEEL_DOWN)) then print("F"); self.ZoomLevel = math.Clamp(self.ZoomLevel + 1, 1, 3); end; if (input.IsMouseDown(MOUSE_WHEEL_UP)) then self.ZoomLevel = math.Clamp(self.ZoomLevel - 1, 1, 3); end; end; [/CODE] I'm trying to do something like this, but neither of them are returning true. Am I just doing something stupid or is this broke? (It is a properly functioning think hook) [editline]30th January 2012[/editline] I solved it by using a panel and OnMouseWheeled
Sorry, you need to Log In to post a reply to this thread.