Beispiel #1
0
        /*
         * Initialise buttons.
         */
        public static void Init(button_add_f add, button_kill_f kill)
        {
            /* Prepare mouse button arrays */
            button_mse = new button_mouse[MAX_MOUSE_BUTTONS];
            button_backup = new button_mouse[MAX_MOUSE_BUTTONS];

            for(int i = 0; i < button_mse.Length; i++) {
                button_mse[i] = new button_mouse();
                button_backup[i] = new button_mouse();
            }

            /* Initialise the hooks */
            button_add_hook = add;
            button_kill_hook = kill;
        }