[Solved] Creating a mouse drag handler

So, in my current project I have an input handling framework setup with listeners and all the input is collected and dispatched at the beginning of the frame. I have the framework working fine for mouse clicks and key presses, but I wanted to create a drag listener. I tried looking at the libgdx input system but I couldn’t find where input was actually dispatched to listeners. I have the following code that dispatches all events, but the current drag handling sends values like 2 and 3 when they should be more like 40 or 50.

Pastebin: http://pastebin.java-gaming.org/b7d1d9b530c1a

In the current setup I check if the mouse is down and if it is and was the last check, then I calculate the delta for the mouse. If it wasn’t then I mark it so the mouse will be seen as down when the next cycle checks. If the mouse isn’t down then I end any drag cycle and dispatch the drag event. When I have the loop print out all delta x and y it shows values like 2 and 3 when they should be like 40 or 50. Any help would be appreciated.

(Highlighted code is where the drag is handled)

Any help would be appreciated!

CopyableCougar4