Thread: snippets/plugin
View Single Post
Unread 06-09-11, 09:10 AM   #2
Malorn
Zombie
AddOn Author - Click to view addons
Join Date: Jun 2011
Posts: 2
Nice start. One question though - why fire the button handler when left click is released and not when it is pressed? To me that is an unnecessary delay and will be perceived as lag by the user.

I would recommend putting the handler in LeftDown() and remove LeftUp() entirely.

RightDown() might be useful for bringing up a context menu, in which case RightUp() would then select whatever option the mouse is hovering over. But in the case of the left button I strongly believe optimizing for performance is the way to go.

On that note, do we know if Rift addons support dependencies? Libraries with many functions like this would be helpful. Sure, we can import them directly into our apps but the value of libraries is that you update them in one place and retain some sanity with versioning.
Malorn is offline   Reply With Quote