Events and Handlers wiki page needs updating

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
SPZ1
Posts: 205
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Events and Handlers wiki page needs updating

Post by SPZ1 »

Ive been looking at this wiki page and tried searching the forums. Without more information on these event handler values this page is largely useless:
inputevent.png
All I can figure here is that I can ignore the mouse movement like this but there must be a better way:

Code: Select all

if (e.MouseX != 0 || e.MouseY != 0){ 
   return false; 
}
The thing here is that I also need to be aware of the mouse's button clicking for other functionality. I've been working on my project and coming up with some real pain-in-the-butt stuff that I'm having issues with and now I'm ending up here...
You do not have the required permissions to view the files attached to this post.
7Soul
Posts: 18
Joined: Sat Mar 13, 2021 6:47 pm

Re: Events and Handlers wiki page needs updating

Post by 7Soul »

I usually do a search on the gzdoom repo to help figure out anything that's unclear from the wiki, for example the struct for InputEvent: https://github.com/ZDoom/gzdoom/blob/eb ... nts.zs#L85
User avatar
SPZ1
Posts: 205
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: Events and Handlers wiki page needs updating

Post by SPZ1 »

Thank you for the link! This is what I couldn't find in the gzdoom.pk3! I got my code working also.

Return to “Scripting”