Thread: Hotspot events & joystick mode
Status: Alpha
Brought to you by:
cwalther
From: Aidan G. <wgs...@ih...> - 2008-02-24 02:58:01
|
Hello, There are two control (i.e. hotspots and handles) events that I just can't figure out: onhilite and enenddrag. Can anyone tell me what triggers these, and how to use them? And another thing, I'm asking about this because it wasn't on the list of things that remain to be done/fixed for 0.2.7: joystick mode doesn't seem to let me pan very far, the limit seems to be about oh, say 30 degrees. This isn't intentional is it? Thanks, Aidan |
From: Christian W. <cwa...@gm...> - 2008-02-24 15:07:43
|
Aidan Gauland wrote: > There are two control (i.e. hotspots and handles) events that I just > can't figure out: onhilite and enenddrag. Can anyone tell me what > triggers these, and how to use them? onhilite is used on controls that represent buttons (in the usual computer GUI sense) and is triggered whenever the button should highlight or unhighlight: Highlight when the mouse goes down on the button, unhighlight when the mouse, still down, leaves it, highlight again, when the mouse, still down, reenters it, unhighlight when the mouse goes up, etc. You should find many examples of this in the internal nodes (main menu, Lua command line, etc.) that are stored in the "Pipmak Resources" ZIP file (on Windows and Linux); the demo project has one on the title node too. onenddrag is triggered when the mouse goes up after it went down on the control, no matter where it is now (onmouseup is only triggered when the mouse goes up on the control). Search for "onenddrag" in the demo project, I think it's used there a few times too. Incidentally, these two events are the ones that were not directly modeled after HyperCard (except for the spelling of "hilite"). onhilite is necessary because HyperCard handles the highlighting of a button internally. onenddrag is an addition that seemed useful to me - in HyperCard, such things were usually done in ways like "repeat while the mouse is down", which doesn't work in Pipmak. I guess I should complete the documentation about these one day... > And another thing, I'm asking about this because it wasn't on the list > of things that remain to be done/fixed for 0.2.7: joystick mode doesn't > seem to let me pan very far, the limit seems to be about oh, say 30 > degrees. This isn't intentional is it? Not at all - that sounds like a pretty serious bug. One that I've never heard of. Do you think you'd be able to figure out what's going on yourself? -Christian |
From: Aidan G. <wgs...@ih...> - 2008-02-25 08:26:13
|
Ok, thanks for that clarification, I'll remember that. And about the joystick mode bug, it's not in the stable release (0.2.6), only in the developmental Subversion release. I'll look at the Subversion history for Pipmak, and try older versions to see when it appeared. -Aidan Christian Walther wrote: > Aidan Gauland wrote: >> There are two control (i.e. hotspots and handles) events that I just >> can't figure out: onhilite and enenddrag. Can anyone tell me what >> triggers these, and how to use them? > > onhilite is used on controls that represent buttons (in the usual > computer GUI sense) and is triggered whenever the button should > highlight or unhighlight: Highlight when the mouse goes down on the > button, unhighlight when the mouse, still down, leaves it, highlight > again, when the mouse, still down, reenters it, unhighlight when the > mouse goes up, etc. You should find many examples of this in the > internal nodes (main menu, Lua command line, etc.) that are stored in > the "Pipmak Resources" ZIP file (on Windows and Linux); the demo project > has one on the title node too. > > onenddrag is triggered when the mouse goes up after it went down on the > control, no matter where it is now (onmouseup is only triggered when the > mouse goes up on the control). Search for "onenddrag" in the demo > project, I think it's used there a few times too. > > Incidentally, these two events are the ones that were not directly > modeled after HyperCard (except for the spelling of "hilite"). onhilite > is necessary because HyperCard handles the highlighting of a button > internally. onenddrag is an addition that seemed useful to me - in > HyperCard, such things were usually done in ways like "repeat while the > mouse is down", which doesn't work in Pipmak. > > I guess I should complete the documentation about these one day... > >> And another thing, I'm asking about this because it wasn't on the list >> of things that remain to be done/fixed for 0.2.7: joystick mode doesn't >> seem to let me pan very far, the limit seems to be about oh, say 30 >> degrees. This isn't intentional is it? > > Not at all - that sounds like a pretty serious bug. One that I've never > heard of. Do you think you'd be able to figure out what's going on yourself? > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Aidan G. <wgs...@ih...> - 2008-02-26 07:20:40
|
Actually, scratch that. It disappeared in revision 180. What did you do? Maybe the missing page was returned. -Aidan Aidan Gauland wrote: > Ok, thanks for that clarification, I'll remember that. And about the > joystick mode bug, it's not in the stable release (0.2.6), only in the > developmental Subversion release. I'll look at the Subversion history > for Pipmak, and try older versions to see when it appeared. > > -Aidan > > Christian Walther wrote: >> Aidan Gauland wrote: >>> There are two control (i.e. hotspots and handles) events that I just >>> can't figure out: onhilite and enenddrag. Can anyone tell me what >>> triggers these, and how to use them? >> onhilite is used on controls that represent buttons (in the usual >> computer GUI sense) and is triggered whenever the button should >> highlight or unhighlight: Highlight when the mouse goes down on the >> button, unhighlight when the mouse, still down, leaves it, highlight >> again, when the mouse, still down, reenters it, unhighlight when the >> mouse goes up, etc. You should find many examples of this in the >> internal nodes (main menu, Lua command line, etc.) that are stored in >> the "Pipmak Resources" ZIP file (on Windows and Linux); the demo project >> has one on the title node too. >> >> onenddrag is triggered when the mouse goes up after it went down on the >> control, no matter where it is now (onmouseup is only triggered when the >> mouse goes up on the control). Search for "onenddrag" in the demo >> project, I think it's used there a few times too. >> >> Incidentally, these two events are the ones that were not directly >> modeled after HyperCard (except for the spelling of "hilite"). onhilite >> is necessary because HyperCard handles the highlighting of a button >> internally. onenddrag is an addition that seemed useful to me - in >> HyperCard, such things were usually done in ways like "repeat while the >> mouse is down", which doesn't work in Pipmak. >> >> I guess I should complete the documentation about these one day... >> >>> And another thing, I'm asking about this because it wasn't on the list >>> of things that remain to be done/fixed for 0.2.7: joystick mode doesn't >>> seem to let me pan very far, the limit seems to be about oh, say 30 >>> degrees. This isn't intentional is it? >> Not at all - that sounds like a pretty serious bug. One that I've never >> heard of. Do you think you'd be able to figure out what's going on yourself? >> >> -Christian >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Pipmak-Users mailing list >> Pip...@li... >> news://news.gmane.org/gmane.games.devel.pipmak.user >> https://lists.sourceforge.net/lists/listinfo/pipmak-users >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Christian W. <cwa...@gm...> - 2008-02-26 11:52:59
|
Aidan Gauland wrote: > Actually, scratch that. It disappeared in revision 180. What did you > do? Maybe the missing page was returned. > > Aidan Gauland wrote: >> Ok, thanks for that clarification, I'll remember that. And about the >> joystick mode bug, it's not in the stable release (0.2.6), only in the >> developmental Subversion release. I'll look at the Subversion history >> for Pipmak, and try older versions to see when it appeared. In r180? Check in your two-line patch: http://pipmak.svn.sourceforge.net/viewvc/pipmak/trunk/pipmak/source/pipmakLuaLib.c?r1=180&r2=179&pathrev=180 If that also fixes the joystick mode bug, all the better - but I'm curious as to why. Did that bug only occur after you used the Save Game dialog for the first time? -Christian |
From: Aidan G. <wgs...@ih...> - 2008-02-27 01:48:26
|
I don't see how that could have fixed the bug. What other files did you change from r179 to r180? And I'm not sure I'm using the right term, I think joystick mode is the one where you don't have to click and hold to pan, just move the mouse. Christian Walther wrote: > Aidan Gauland wrote: >> Actually, scratch that. It disappeared in revision 180. What did you >> do? Maybe the missing page was returned. >> >> Aidan Gauland wrote: >>> Ok, thanks for that clarification, I'll remember that. And about the >>> joystick mode bug, it's not in the stable release (0.2.6), only in the >>> developmental Subversion release. I'll look at the Subversion history >>> for Pipmak, and try older versions to see when it appeared. > > In r180? Check in your two-line patch: > http://pipmak.svn.sourceforge.net/viewvc/pipmak/trunk/pipmak/source/pipmakLuaLib.c?r1=180&r2=179&pathrev=180 > > If that also fixes the joystick mode bug, all the better - but I'm > curious as to why. Did that bug only occur after you used the Save Game > dialog for the first time? > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Christian W. <cwa...@gm...> - 2008-02-27 11:53:49
|
Aidan Gauland wrote: > I don't see how that could have fixed the bug. What other files did > you change from r179 to r180? None, as you can see at <http://pipmak.svn.sourceforge.net/viewvc/pipmak?view=rev&revision=180> or by running "svn log -v -r180" in your working copy. > And I'm not sure I'm using the right term, I think joystick mode is > the one where you don't have to click and hold to pan, just move the > mouse. Uhm, no. I guess I have to change that term, since it seems to confuse people (are people not familiar with joysticks anymore these days?). The characteristic of a joystick is that the thing it moves on-screen moves faster when you push the joystick farther, and continues moving when you keep the joystick still (outside of its neutral position). So joystick mode is the one where panning is faster the farther you drag, and continues at a constant speed when you keep the mouse still while dragging. Direct mode, on the other hand, is when the view moves "directly" as much as you move the mouse, and stays still when you keep the mouse still. Any better ideas to name the two modes than "joystick mode" and "direct mode"? -Christian |
From: Aidan G. <wgs...@ih...> - 2008-02-28 05:08:22
|
Christian Walther wrote: > Aidan Gauland wrote: >> I don't see how that could have fixed the bug. What other files did >> you change from r179 to r180? > > None, as you can see at > <http://pipmak.svn.sourceforge.net/viewvc/pipmak?view=rev&revision=180> > or by running "svn log -v -r180" in your working copy. Maybe this isn't worth investigating further, since the bug is gone now? > >> And I'm not sure I'm using the right term, I think joystick mode is >> the one where you don't have to click and hold to pan, just move the >> mouse. > > Uhm, no. I guess I have to change that term, since it seems to confuse > people (are people not familiar with joysticks anymore these days?). The > characteristic of a joystick is that the thing it moves on-screen moves > faster when you push the joystick farther, and continues moving when you > keep the joystick still (outside of its neutral position). So joystick > mode is the one where panning is faster the farther you drag, and > continues at a constant speed when you keep the mouse still while > dragging. Direct mode, on the other hand, is when the view moves > "directly" as much as you move the mouse, and stays still when you keep > the mouse still. > > Any better ideas to name the two modes than "joystick mode" and "direct > mode"? My confusion was caused by only remembering the name of one mode, so now that I remember what they're both called, I think the current names are appropriate. > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Christian W. <cwa...@gm...> - 2008-03-02 11:23:05
|
Aidan Gauland wrote: > [direct] mode doesn't seem to let me pan very far, the limit seems to be about oh, say 30 degrees. ... > Maybe this isn't worth investigating further, since the bug is gone now? Hold on, I can reproduce this (in r181). It happens in full-screen mode after switching resolutions. Is that where it happened for you too? OK, another bug to be fixed before the release. -Christian |
From: Aidan G. <wgs...@ih...> - 2008-03-03 07:52:47
|
Uh, no... I can get by using direct mouse mode as soon as I launch Pipmak. Christian Walther wrote: > Aidan Gauland wrote: >> [direct] mode doesn't seem to let me pan very far, the limit seems to be about oh, say 30 degrees. > ... >> Maybe this isn't worth investigating further, since the bug is gone now? > > Hold on, I can reproduce this (in r181). It happens in full-screen mode > after switching resolutions. Is that where it happened for you too? OK, > another bug to be fixed before the release. > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Christian W. <cwa...@gm...> - 2008-04-23 19:13:01
|
Christian Walther wrote: > Aidan Gauland wrote: >> [direct] mode doesn't seem to let me pan very far, the limit seems to be about oh, say 30 degrees. > .... >> Maybe this isn't worth investigating further, since the bug is gone now? > > Hold on, I can reproduce this (in r181). It happens in full-screen mode > after switching resolutions. OK, I fixed the problem I was seeing in r186. Can you check if this fixes your problem too (if you can reproduce it again at all)? -Christian |
From: Aidan G. <wgs...@ih...> - 2008-04-25 00:50:44
|
I cannot reproduce this bug in r186 on my system. Wonderful! But as a programmer, my curiosity is too great, how did you fix this bug? And by the way, I'm looking at different ways of linking libraries on Linux, so the Linux build of Pipmak can be more self contained like the Mac and Windows builds. I'll come back to the mailing lists with my findings in a bit. -Aidan Christian Walther wrote: > Christian Walther wrote: >> Aidan Gauland wrote: >>> [direct] mode doesn't seem to let me pan very far, the limit seems to be about oh, say 30 degrees. >> .... >>> Maybe this isn't worth investigating further, since the bug is gone now? >> Hold on, I can reproduce this (in r181). It happens in full-screen mode >> after switching resolutions. > > OK, I fixed the problem I was seeing in r186. Can you check if this > fixes your problem too (if you can reproduce it again at all)? > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > |
From: Christian W. <cwa...@gm...> - 2008-04-25 11:06:08
|
Aidan Gauland wrote: > I cannot reproduce this bug in r186 on my system. Wonderful! Great! > But as a programmer, my curiosity is too great, how did you fix this bug? Use Subversion - its point is exactly to answer such questions. Either use the web interface: The full revision history is at <http://pipmak.svn.sourceforge.net/viewvc/pipmak/trunk/?view=log>, <http://pipmak.svn.sourceforge.net/viewvc/pipmak?view=rev&revision=186> gives you a summary of what happened in revision 186, and clicking on the "text changed" links next to the files gives you the exact changes to each file. Or in your working copy: 'svn update' to download the latest changes 'svn log -v --limit 5' to summarize the last 5 revisions (-v includes which files were changed) 'svn diff -r185:186' to get the exact changes > And by the way, I'm looking at different ways of linking libraries on Linux, > so the Linux build of Pipmak can be more self contained like the Mac and > Windows builds. I'll come back to the mailing lists with my findings in a bit. That would be welcome. One article about it is at <http://www.gamedev.net/reference/programming/features/linuxprogramming2/default.asp>. <http://www.autopackage.org/docs.html> may have useful information too. Also have a look at the SDL mailing list archives, the issue comes up there every now and then (search for posts by Gabriele Greco, he's experienced). -Christian |