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.
Mouse Middle button
Re: Mouse Middle button
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
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 --
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 --
-
- Posts: 33
- Joined: July 27th, 2012, 12:48 pm
Re: Mouse Middle button
Thanks a lot. I didnt expected that would be so easy.