RetroArch
Macros | Functions | Variables
keyboard_event_apple.c File Reference
#include <stdint.h>
#include <unistd.h>
#include "../input_keymaps.h"
#include "../input_driver.h"
#include "../../driver.h"
#include "../../retroarch.h"
#include "keyboard_event_apple.h"
Include dependency graph for keyboard_event_apple.c:

Macros

#define HIDKEY(X)   (X < 128) ? MAC_NATIVE_TO_HID[X] : 0
 

Functions

void apple_input_keyboard_event (bool down, unsigned code, uint32_t character, uint32_t mod, unsigned device)
 
int32_t apple_keyboard_find_any_key (void)
 

Variables

static const unsigned char MAC_NATIVE_TO_HID [128]
 
uint32_t apple_key_state [MAX_KEYS]
 

Macro Definition Documentation

◆ HIDKEY

#define HIDKEY (   X)    (X < 128) ? MAC_NATIVE_TO_HID[X] : 0

Function Documentation

◆ apple_input_keyboard_event()

void apple_input_keyboard_event ( bool  down,
unsigned  code,
uint32_t  character,
uint32_t  mod,
unsigned  device 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ apple_keyboard_find_any_key()

int32_t apple_keyboard_find_any_key ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ apple_key_state

uint32_t apple_key_state[MAX_KEYS]

◆ MAC_NATIVE_TO_HID

const unsigned char MAC_NATIVE_TO_HID[128]
static
Initial value:
= {
4, 22, 7, 9, 11, 10, 29, 27, 6, 25,255, 5, 20, 26, 8, 21,
28, 23, 30, 31, 32, 33, 35, 34, 46, 38, 36, 45, 37, 39, 48, 18,
24, 47, 12, 19, 40, 15, 13, 52, 14, 51, 49, 54, 56, 17, 16, 55,
43, 44, 53, 42,255, 41,231,227,225, 57,226,224,229,230,228,255,
108, 99,255, 85,255, 87,255, 83,255,255,255, 84, 88,255, 86,109,
110,103, 98, 89, 90, 91, 92, 93, 94, 95,111, 96, 97,255,255,255,
62, 63, 64, 60, 65, 66,255, 68,255,104,107,105,255, 67,255, 69,
255,106,117, 74, 75, 76, 61, 77, 59, 78, 58, 80, 79, 81, 82,255
}