Refactor and remove the concept of ShapeMode and LineMode. Really, shift is the only modifier of the drawing. I was duplicating this info (and it could get out of sync by duplicating) with the union type. Relying on isPressed Shift keyboardState is much more reliable.
Refactor and remove the concept of
ShapeMode
andLineMode
. Really, shift is the only modifier of the drawing. I was duplicating this info (and it could get out of sync by duplicating) with the union type. Relying onisPressed Shift keyboardState
is much more reliable.