MapKeyToDir (Kernel)

MapKeyToDir(event)

This converts a keyboard event to a movement event. For example, if they press the UP key, it will convert that to an UP movement event. It returns a ponter to the event object.

Parameters:event (heapPtr) – An Event object.
Returns:A pointer to the event.