BlitzMax Request: Signed Short

BlitzMax Forums/BlitzMax Programming/BlitzMax Request: Signed Short

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well the problem, Michael, is I need to -get- the signed shorts, not send them.

Basically, the case is reading this structure:
/* Mouse motion event structure */
typedef struct {
	Uint8 type;	/* SDL_MOUSEMOTION */
	Uint8 which;	/* The mouse device index */
	Uint8 state;	/* The current button state */
	Uint16 x, y;	/* The X/Y coordinates of the mouse */
	Sint16 xrel;	/* The relative motion in the X direction */
	Sint16 yrel;	/* The relative motion in the Y direction */
} SDL_MouseMotionEvent;


Note the lines for xrel and yrel- the problem is that without signed shorts I cannot really use the relative X and Y mouse positions. Now the simple solution is to just stick unsigned shorts in their place and not use them, but then I'm making no use of a portion of SDL's functionality.