Re: [Pipmak-Users] push/pop mousemode problem
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-01-10 19:50:44
|
Fabrizio Pistonesi wrote: > local token > onenternode ( > function() token = pipmak.pushmousemode(pipmak.getmousemode()) > pipmak.setmousemode(pipmak.joystick) > end > ) > onleavenode ( > function() pipmak.popmousemode(token) end) > > -- (this node is overlayed) > _________________________________________________ > > Mouse cursor remains in the some mode of the previous node and "M" > keys doesn't work any more, not even reloading the nodes but "Shift" > key work. That sounds like the expected behavior to me. setmousemode (which is just what the M key uses) does work, but it affects the standard setting, i.e. the bottommost in the stack, which is not in effect when there are others above it on the stack, like the one you just pushed (and you explicitly set that to the previous standard setting). > On popmousemode() 'token' is not recognized as mode type Not sure what you mean by that. Yes, it's not a mode, it's an opaque token (or cookie or ticket or whatever you want to call it) that you can't use for anything but popmousemode(). If you can explain to me what you're trying to achieve with that code, I can perhaps clarify the documentation. I suspect that you're confused about how pushmousemode/popmousemode work (and if so, that's probably my fault for not explaining it properly, or maybe even mis-designing it). -Christian |