libtcod / python-tcod

A high-performance Python port of libtcod. Includes the libtcodpy module for backwards compatibility with older projects.
BSD 2-Clause "Simplified" License
413 stars 36 forks source link

mouse.dcx,mouse.dx not working ? #61

Closed FractalWire closed 5 years ago

FractalWire commented 5 years ago

Hi there,

I just started to experiment with tcod and I noted that the mouse properties dx/dy, dcx/dcy seem to not do much.

Here is the description for dcx :

dcx int - Movement since last update in console cells.

However, the value seem to stay the same (0) no matter how fast I move my mouse. I even tried to make my program sleep between 2 frames to see if the value would change but it does not.

Is this a bug ? If not, could you clarify how to use it properly ?

Thanks !

HexDecimal commented 5 years ago

I assume you mean cx/cy/dcx/dcy instead of dx/dy?

There was a known issue with the tile-based mouse attributes which is fixed in most recent source. I'll make a new release with the fixes.

HexDecimal commented 5 years ago

python-tcod 8.4.0 is released. It should resolve the issue.

FractalWire commented 5 years ago

Indeed it does ! Thanks for the quick answer !