Displaying 9 results from an estimated 9 matches for "onkeybd".
Did you mean:
onkey
2014 Mar 21
1
Memcheck: error in a switch using getGraphicsEvent
...r
--- 8< ----------------
The choice function does call the choiceChangeParam function, which is:
--- 8< ----------------
choiceChangeParam <- function(paramChoice){
texte <- paste(" ~ Choice : menu ~\n",sep="")
choix <- getGraphicsEvent(texte,onKeybd=function(key){return(key)})
switch(EXPR=choix,
"Up" = {
if(xy[1]>1){
paramChoice['toDo'] <- "xy"
xy[2]<-1
xy[1]<-xy[1]-1
paramChoice['xy...
2016 Jun 07
2
getGraphicsEvent on X11 and event queuing
...is there some other
library or workaround to solve my problems?
Here is some code I used to play around with these functions:
X11(type="Xlib");
keydown = function(key) {
cat("Got key: ",key);
lastkey <<- key
}
setGraphicsEventHandlers(onKeybd = keydown);
plot(c(0,0));
getGraphicsEvent();
Well, I think it's great that getGraphicsEvent exists at all, and want
to salute Duncan Murdoch who is listed as the author. I hope I may
have helped by describing some new possible uses for these functions.
Thank you,
Frederick
2008 Apr 13
1
getGraphicsEvent plotting two graph
...b until the user press Return, but it does not.
b <- function(x){
dev.off(2);dev.off(3)
windows();windows(3,3,xpos=0)
dev.set(2);plot(1:x)
dev.set(3);plot(1:x^2)
return(NULL)
}
b(2)
a <- function(y){
b(y)
getGraphicsEvent("Arrow Up or Return",
onKeybd=function(key){
if(key!="ctrl-J"){
if(key=="Up"){y <<- y+1}else{}
b(y)
cat("\n*** This function a never gets here... ***\n")
return(NULL)
}else{
return(TRUE)...
2016 Jun 07
0
getGraphicsEvent on X11 and event queuing
...problems?
>
> Here is some code I used to play around with these functions:
>
> X11(type="Xlib");
>
> keydown = function(key) {
> cat("Got key: ",key);
> lastkey <<- key
> }
>
> setGraphicsEventHandlers(onKeybd = keydown);
>
> plot(c(0,0));
> getGraphicsEvent();
>
> Well, I think it's great that getGraphicsEvent exists at all, and want
> to salute Duncan Murdoch who is listed as the author. I hope I may
> have helped by describing some new possible uses for these functio...
2020 Aug 09
0
Interactive graphics
Dear R-Devel list members
I'm facing as problem already known and linked to the use of
getGraphicsEvent(prompt = "Waiting for input",
???????????????? onMouseDown = NULL, onMouseMove = NULL,
???????????????? onMouseUp = NULL, onKeybd = NULL,
???????????????? onIdle = NULL,
???????????????? consolePrompt = prompt)
setGraphicsEventHandlers(which = dev.cur(), ...)
getGraphicsEventEnv(which = dev.cur())
setGraphicsEventEnv(which = dev.cur(), env)
The problem rises when trying to get interrupts generated by pressing
mouse button...
2016 Jun 09
3
getGraphicsEvent on X11 and event queuing
...>> Here is some code I used to play around with these
>> functions:
>>
>> X11(type="Xlib");
>>
>> keydown = function(key) { cat("Got key: ",key); lastkey <<- key }
>>
>> setGraphicsEventHandlers(onKeybd = keydown);
>>
>> plot(c(0,0)); getGraphicsEvent();
>>
>> Well, I think it's great that getGraphicsEvent exists at
>> all, and want to salute Duncan Murdoch who is listed as
>> the author. I hope I may have helped by describing some...
2016 Nov 14
0
getGraphicsEvent() alternative for cairo graphics device?
...nMouseMove=function(buttons,x,y) {
newX=grconvertX(x,"ndc","user");
newY=grconvertY(y,"ndc","user");
lastp<<-c(newX,newY);
NULL;
},
onKeybd=function(key) {
if(key=="q") { 1 }
else { NULL }
}
);
}
2016 Sep 16
1
getGraphicsEvent() questions, minor feature/tweak request, and patch(es).
...}
+ \item{prompt}{prompt to be displayed to the user in the graphics window, or NA for no prompt}
\item{onMouseDown}{a function to respond to mouse clicks}
\item{onMouseMove}{a function to respond to mouse movement}
\item{onMouseUp}{a function to respond to mouse button releases}
\item{onKeybd}{a function to respond to key presses}
- \item{consolePrompt}{prompt to be displayed to the user in the console}
+ \item{consolePrompt}{prompt to be displayed to the user in the console, or NA for no prompt}
\item{which}{which graphics device does the call apply to?}
\item{...}{items includ...
2016 Nov 14
2
getGraphicsEvent() alternative for cairo graphics device?
Great. Thanks!
Paul
On 14/11/16 13:41, frederik at ofb.net wrote:
> Hi Paul,
>
> Thank you, for some reason I didn't seem to get an email notification
> for your bugzilla comment!
>
> I will try to send you something shortly.
>
> Frederick
>
> On Mon, Nov 14, 2016 at 08:55:20AM +1300, Paul Murrell wrote:
>> Hi
>>
>> The current status is that