[PD-dev] glist_grab not grabbing arrows

federico mescalinum at gmail.com
Tue Sep 4 00:36:05 CEST 2007


I searched thru the externals... didn't found one using arrow keys.
anyone can give an example of capturing arrow keys?

here's my code calling glist_grab:

static int grid_click(t_gobj* z, t_glist* glist, int xpix, int ypix,
int shift, int alt, int dbl, int doit) {
    t_grid* x = (t_grid*)z;
    t_canvas* canvas = glist_getcanvas(glist);

    if(doit) {
        glist_grab(glist, &x->x_obj.te_g,
            (t_glistmotionfn)grid_motion, grid_key, xpix, ypix);
...

ty
Federico




More information about the Pd-dev mailing list