.. MapKeyToDir

.. default - domain::js

.. include:: /includes/standard.rst

====================
MapKeyToDir (Kernel)
====================

.. function:: 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.
	
	:param heapPtr event: An :class:`Event` object.
	:returns: A pointer to the event.


