pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include "global.h"
#include "hid.h"
#include "resource.h"
#include "hid/common/hid_resource.h"
Go to the source code of this file.
Functions | |
static Resource * | res_wrap (char *value) |
static unsigned | parse_mods (char *value) |
static int | button_name_to_num (const char *name) |
void | load_mouse_resource (const Resource *res) |
static Resource * | find_best_action (int button, int start, unsigned mod_mask) |
void | do_mouse_action (int button, int mod_mask) |
Variables | |
static int | button_count |
static int * | button_nums |
static int * | mod_count |
static unsigned * | mods |
static Resource ** | actions |
static int button_name_to_num | ( | const char * | name | ) | [static] |
Definition at line 58 of file hid_resource.c.
Referenced by load_mouse_resource().
void do_mouse_action | ( | int | button, |
int | mod_mask | ||
) |
Definition at line 184 of file hid_resource.c.
References action, button_count, button_nums, Resource::c, find_best_action(), hid_parse_actions(), mod_count, Resource::v, and ResourceVal::value.
Referenced by ghid_port_button_press_cb(), ghid_port_button_release_cb(), ghid_port_window_mouse_scroll_cb(), and work_area_input().
static Resource* find_best_action | ( | int | button, |
int | start, | ||
unsigned | mod_mask | ||
) | [static] |
Definition at line 161 of file hid_resource.c.
References M_Release, mod_count, and mods.
Referenced by do_mouse_action().
void load_mouse_resource | ( | const Resource * | res | ) |
Definition at line 83 of file hid_resource.c.
References action_count, button_count, button_name_to_num(), button_nums, Resource::c, m, malloc(), mod_count, mods, ResourceVal::name, parse_mods(), res_wrap(), resource_dump(), resource_type, ResourceVal::subres, Resource::v, and ResourceVal::value.
Referenced by ghid_load_menus(), and lesstif_menu().
static unsigned parse_mods | ( | char * | value | ) | [static] |
Definition at line 28 of file hid_resource.c.
References m, M_Alt, M_Ctrl, M_Mod, M_Release, M_Shift, and s.
Referenced by load_mouse_resource().
static Resource* res_wrap | ( | char * | value | ) | [static] |
Definition at line 19 of file hid_resource.c.
References resource_add_val(), and resource_create().
Referenced by load_mouse_resource().
Definition at line 16 of file hid_resource.c.
int button_count [static] |
Definition at line 12 of file hid_resource.c.
Referenced by do_mouse_action(), and load_mouse_resource().
int* button_nums [static] |
Definition at line 13 of file hid_resource.c.
Referenced by do_mouse_action(), and load_mouse_resource().
int* mod_count [static] |
Definition at line 14 of file hid_resource.c.
Referenced by do_mouse_action(), find_best_action(), and load_mouse_resource().
unsigned* mods [static] |
Definition at line 15 of file hid_resource.c.
Referenced by DumpKeys2(), find_best_action(), find_or_create_acc(), lesstif_key_event(), load_mouse_resource(), note_accelerator(), REGISTER_ACTIONS(), and work_area_input().