2005-11-08 02:02:16 +00:00
|
|
|
/*
|
|
|
|
*
|
2006-09-15 14:55:39 +00:00
|
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
|
2005-11-08 02:02:16 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACOS_EVENTS_H__
|
|
|
|
#define __MACOS_EVENTS_H__
|
|
|
|
|
|
|
|
#include <macos/traps.h>
|
|
|
|
|
|
|
|
typedef u_int32_t KeyMap[4];
|
|
|
|
|
2006-12-29 20:27:15 +00:00
|
|
|
#ifdef __mc68000__
|
2005-11-08 02:02:16 +00:00
|
|
|
static inline void GetKeys(KeyMap theKeys)
|
|
|
|
{
|
|
|
|
asm("move.l %0, -(%%sp)\n"
|
|
|
|
Trap(_GetKeys)
|
|
|
|
:: "g" (theKeys) : "%%d0", UNPRESERVED_REGS );
|
|
|
|
}
|
2006-12-29 20:27:15 +00:00
|
|
|
#endif /* __mc68000__ */
|
2005-11-08 02:02:16 +00:00
|
|
|
#endif /* __MACOS_EVENTS_H__ */
|