(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Hosted Projects > Reinventing the Craft

Reinventing the Craft A project that aims to add more functionality to Warcraft III, while at the same time keeping it a low size, so it's still useful for mappers. RtC will be available for any type of map, mod or even a Total Conversion.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-07-2007, 06:52 AM   #1 (permalink)

User
 
Join Date: Feb 2007
Posts: 32

Blackroot has little to show at this moment (5)


Mouse click?

I went over the API's, but is there any way to get a mouse click event, or check if either side of the mosue is depressed?
Blackroot is offline  
Old 11-07-2007, 11:42 AM   #2 (permalink)
 
MindWorX's Avatar

Wulfy loves Nex!
 
Join Date: Aug 2004
Posts: 293

MindWorX has a spectacular aura about (122)MindWorX has a spectacular aura about (122)MindWorX has a spectacular aura about (122)MindWorX has a spectacular aura about (122)

PayPal Donor: This user has donated to The Hive. Hosted Project of the Year 2007: Reinventing the Craft 

With the next release, which is right around the corner, the MouseAPI will be upgraded with a two new natives:
//===================================================
// Mouse API constants
//===================================================
globals
constant integer EVENT_LMOUSEUP = 0
constant integer EVENT_LMOUSEDOWN = 1
constant integer EVENT_RMOUSEUP = 2
constant integer EVENT_RMOUSEDOWN = 3
constant integer EVENT_MMOUSEUP = 4
constant integer EVENT_MMOUSEDOWN = 5
constant integer EVENT_MOUSEWHEEL = 6
endglobals
native TriggerRegisterMouseEvent takes trigger whichTrigger, integer eventtype returns nothing
native GetTriggerWheelDelta takes nothing returns integer

If you use the EVENT_MOUSEWHEEL, you can use the GetTriggerWheelDelta afterwards, to see what way the wheel scrolled, it's positive if up, and negative if down.
__________________
"Wulfy loves Nex!"
MindWorX is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] Mouse Detector xXCRIMINALXx Triggers & Scripts 9 09-20-2007 09:52 PM
[Trigger] Mouse scroll event Mechanical Man Triggers & Scripts 2 01-05-2007 02:44 PM
Mouse target dropped? Mouse dropped off of unit? svoluch Map Development 0 11-21-2005 03:53 AM
[JASS] Mouse Button Click Event? Dark_Baron_Prot Triggers & Scripts 2 11-04-2005 08:03 PM
[JASS] Mouse Selection Question aka_star Triggers & Scripts 1 09-27-2005 05:51 PM

All times are GMT. The time now is 09:28 AM.






Your link here 
Debt Consolidation | Bankruptcy | Bankruptcy | Free Advertising | Debt Consolidation
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle