
Data Structures | |
| struct | key_descriptor_s |
Typedefs | |
| typedef struct key_descriptor_s | key_descriptor_t |
Enumerations | |
| enum | { vlc_num_modifiers } |
| enum | { vlc_num_keys = sizeof(vlc_keys)/sizeof(struct key_descriptor_s) } |
Functions | |
| static int | cmpkey (const void *key, const void *elem) |
| static char * | utf8_cp (uint_fast32_t cp, char *buf) |
| static uint_fast32_t | cp_utf8 (const char *utf8) |
| char * | KeyToString (uint_fast32_t sym) |
| uint_fast32_t | StringToKey (char *name) |
| uint_fast32_t | ConfigStringToKey (const char *name) |
| char * | ConfigKeyToString (uint_fast32_t i_key) |
Variables | |
| static struct key_descriptor_s | vlc_modifiers [] |
| static struct key_descriptor_s | vlc_keys [] |
| typedef struct key_descriptor_s key_descriptor_t |
| static int cmpkey | ( | const void * | key, | |
| const void * | elem | |||
| ) | [static] |
Referenced by ConfigKeyToString(), KeyToString(), and parse().
| char* ConfigKeyToString | ( | uint_fast32_t | i_key | ) |
References cmpkey(), i, key_descriptor_s::i_key_code, KEY_MODIFIER, key_descriptor_s::psz_key_string, utf8_cp(), vlc_num_keys, and vlc_num_modifiers.
Referenced by SaveConfigFile().
| uint_fast32_t ConfigStringToKey | ( | const char * | name | ) |
References cp_utf8(), i, key_descriptor_s::i_key_code, key_descriptor_s::psz_key_string, strcasecmp(), strncasecmp(), vlc_num_keys, and vlc_num_modifiers.
Referenced by config_LoadCmdLine(), and config_LoadConfigFile().
| static uint_fast32_t cp_utf8 | ( | const char * | utf8 | ) | [static] |
Referenced by ConfigStringToKey(), and StringToKey().
| char* KeyToString | ( | uint_fast32_t | sym | ) |
References cmpkey(), key_descriptor_s::psz_key_string, strdup(), utf8_cp(), and vlc_num_keys.
Referenced by EvtKey::getAsString(), VLCSimplePrefs::OSXKeyToString:, and VLCKeyToString().
| uint_fast32_t StringToKey | ( | char * | name | ) |
References cp_utf8(), i, key_descriptor_s::i_key_code, key_descriptor_s::psz_key_string, and vlc_num_keys.
| static char* utf8_cp | ( | uint_fast32_t | cp, | |
| char * | buf | |||
| ) | [static] |
Referenced by ConfigKeyToString(), and KeyToString().
struct key_descriptor_s vlc_keys[] [static] |
Referenced by KeyConfigControl::initWithItem:withView:, and main().
struct key_descriptor_s vlc_modifiers[] [static] |
Initial value:
{
{ "Alt", 0x01000000 },
{ "Shift", 0x02000000 },
{ "Ctrl", 0x04000000 },
{ "Meta", 0x08000000 },
{ "Command", 0x10000000 }
}
1.5.6