mouseclick hook

Nirran

Vault Senior Citizen
Modder
shouldnt this spam, every click?it dont

Code:
#include "D:\Game Files\Fallout 2\HEADERS\includes.h"

procedure start;
procedure my_mouse_click;

procedure start begin
   if game_loaded then begin
     register_hook_proc(HOOK_MOUSECLICK, my_mouse_click);
      //display_msg("Test Fired");
   end
end

procedure my_mouse_click begin
   variable event,button;
   event := get_sfall_arg;
   button := get_sfall_arg;
  
   display_msg("Button " + button + " event " + event);
end

meh sometimes im obtuse,this means clicking a button to fire?

Code:
Runs once every time when a mouse button was pressed or released.
 
Last edited:
Back
Top