Once a callback is set with rgl.setMouseCallbacks, rgl.setMouseCallbacks( 1, NULL, NULL, NULL ) will not restore the default behavior. Is this a bug or a feature? Should I file an issue if it is a bug?
I am looking for information.
Once a callback is set with rgl.setMouseCallbacks, rgl.setMouseCallbacks( 1, NULL, NULL, NULL ) will not restore the default behavior. Is this a bug or a feature? Should I file an issue if it is a bug?
I am looking for information.
Copyright © 2021 Jogjafile Inc.
Setting a callback to
NULLmeans "no handler". When the docs sayNULLis "the default value", they are talking about the default value for this function, not the default mouse handler.If you want to restore the default value, you would use
par3d(mouseMode = r3dDefaults()$mouseMode).If you want to restore the previous value (which might not be the default), you would need to save it and then restore it. For example,