python-tcod icon indicating copy to clipboard operation
python-tcod copied to clipboard

Refactoring event attributes.

Open HexDecimal opened this issue 2 years ago • 0 comments

Events are a mess right now and need to be cleaned up. Multiple bad ideas need to be deprecated and removed in a way which allows for backwards compatibility.

  • [x] Fix case in window event types as they do not match the type hints.
  • [x] Rename mouse pixel attributes to just position and motion in preparation to removing their tile attributes.
  • [x] Context.convert_event should return a new event with updated positions instead of editing events in place.
  • [ ] A new function needs to be added to convert coordinates when contexts are not available.
  • [x] Deprecate tile attributes in mouse events.

HexDecimal avatar Jan 02 '23 05:01 HexDecimal