
Originally Posted by
Le Jingle
in the includes, or in the simba build, let's say you have 0, 1, or 2 for mouse actions, each representing a way a mouse might click (choices could be left/right/none aka move). We'll, let's say somewhere in the implementation of a mouse method, the old mouse_right was equivalent to 2, but now, it's been changed so mouse_move is currently equivalent to 2. However, if we use the constants, or the Mouse_Left, Mouse_Right, Mouse_Move, we should never encounter a problem with changed implementation, because as we interact with the interface of the InvMouse function, and we say Mouse_Right instead of 2, we should have no doubt that the Mouse_Right will always generate a mouse click for the right button, versus having some doubt that 2, may have changed to a different mouse button. Thus, I'd recommend calling constants instead of hard code, as there should be less errors to deal with.
Cheers,
Lj