MV Mouse not working in my custom plugin?

Hello,

I am creating a plugin with mostly custom window_base scene and I am trying to add a button or a window_command but the mouse doesnt works in my script either its on a custom button or a window_command window. The console doesnt show any error and I cannot figure what I am doing wrong. Can someone look at my script and help me out? 🙂 Thanks!

NOTE : its a wip, first version. Code need optimization I know.

UPDATE debug myself. The Update function in my code was preventing the mouse from working.

Original thread: https://forums.rpgmakerweb.com/threads/mouse-not-working-in-my-custom-plugin.152918/