-/* Expanding upon joystick.h */
-#define JOY_FIRE_IDX 4
-
-#define JOY_FIRE(v) ((v) & joy_masks[JOY_FIRE_IDX])
+#define JOY_FIRE_MASK JOY_BTN_1_MASK
+#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
unsigned char get_tv (void);
/* Return the video mode the machine is using. */
-#define KBDREPEAT_CURSOR 0x00
-#define KBDREPEAT_NONE 0x40
-#define KBDREPEAT_ALL 0x80
+#define KBREPEAT_CURSOR 0x00
+#define KBREPEAT_NONE 0x40
+#define KBREPEAT_ALL 0x80
-unsigned char kbrepeat(unsigned char);
-unsigned char kbrepeatdelay(unsigned char);
-unsigned char kbrepeatrate(unsigned char);
+unsigned char __fastcall__ kbrepeat (unsigned char mode);
+/* Changes which keys have automatic repeat. */
#if !defined(__CBM610__) && !defined(__PET__)
void waitvsync (void);
-/* wait for the start of the next frame */
+/* Wait for the start of the next frame */
#endif
/*****************************************************************************/
void __fastcall__ cbm_k_talk (unsigned char dev);
void cbm_k_udtim (void);
void cbm_k_unlsn (void);
+void cbm_k_untlk (void);