pcb 4.1.1
An interactive printed circuit board layout editor.

hid_resource.h

Go to the documentation of this file.
00001 
00002 #ifndef PCB_HID_COMMON_HID_RESOURCE_H
00003 #define PCB_HID_COMMON_HID_RESOURCE_H
00004 
00005 #include "resource.h"
00006 
00007 #define M_Shift   1
00008 #define M_Ctrl    2
00009 #define M_Mod(n)  (1<<(n+1))
00010 #define M_Alt     M_Mod(1)
00011 #define M_Multi   M_Mod(2)
00012 #define M_Release (~((unsigned)-1>>1)) // set the top bit
00013 
00014 void load_mouse_resource (const Resource *res);
00015 void do_mouse_action (int button, int mods);
00016 
00017 #endif