Is it possible to get Right-Click event from Hitbox ?

Hi, I am sorry if this has been posted before, I tried searching the forum but couldn’t find what I was looking for, if this is a repost please give me the link and I will delete this thread.

I made an inventory system, and I wanted to drop an item on right click, my inventory slots are all Hitboxes, right now when I left click it works, but I don’t know how to get the right click event for hitboxes.
Is there a way to get the hitboxes right click event or a way to check which mouse button I pressed on a hitbox ?

Thank You. Again, if this is a repost, please let me know I will delete it.

Not sure if i understand. But if you are looking how to fire an event if you rightclick… add it under Project Settings / Input / Then add a new action mapping and select Mouse Right Button.