Mouse Middle button

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
JerryTheBig
Posts: 33
Joined: July 27th, 2012, 12:48 pm

Mouse Middle button

Post by JerryTheBig » July 12th, 2013, 10:20 pm

Hi,
I was wondering how can I add a new function to the chili's framework.
The version is this:
http://www.planetchili.net/forum/downlo ... php?id=623 - platformer
I've tried to find out myself but this framework is still kind of mystery for me.
Thanks for help.

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Mouse Middle button

Post by LuisR14 » July 13th, 2013, 7:51 am

hehe, my puzzle game has middle mouse support (even tho game doesn't use it)
you just go to Mouse.h and add OnMiddlePressed/Released function and a bool middleispressed to MouseServer and IsMiddlePressed function to MouseClient and then in Windows.cpp in the MsgProc function you add a "case MBUTTONDOWN:" and "case MBUTTONUP:" and use the corresponding mServ.OnMiddle functions :)

edit: woops, meant MBUTTONDOWN and MBUTTONUP
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

JerryTheBig
Posts: 33
Joined: July 27th, 2012, 12:48 pm

Re: Mouse Middle button

Post by JerryTheBig » July 15th, 2013, 8:03 pm

Thanks a lot. I didnt expected that would be so easy.

Post Reply