imtk

diff test.c @ 16:1cf212375db3

textbox cursor handling
author John Tsiombikas <nuclear@siggraph.org>
date Tue, 19 Apr 2011 08:24:39 +0300
parents df2bc9406561
children 737e9047d9c9
line diff
     1.1 --- a/test.c	Tue Apr 19 05:10:09 2011 +0300
     1.2 +++ b/test.c	Tue Apr 19 08:24:39 2011 +0300
     1.3 @@ -53,8 +53,6 @@
     1.4  	glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, white);
     1.5  	glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 60.0);
     1.6  
     1.7 -	imtk_set_bevel_width(1);
     1.8 -
     1.9  	glutMainLoop();
    1.10  	return 0;
    1.11  }
    1.12 @@ -216,12 +214,12 @@
    1.13  
    1.14  void skeyb(int key, int x, int y)
    1.15  {
    1.16 -	imtk_inp_key(key, IMTK_DOWN);
    1.17 +	imtk_inp_key(key | 0x100, IMTK_DOWN);
    1.18  }
    1.19  
    1.20  void skeyb_up(int key, int x, int y)
    1.21  {
    1.22 -	imtk_inp_key(key, IMTK_UP);
    1.23 +	imtk_inp_key(key | 0x100, IMTK_UP);
    1.24  }
    1.25  
    1.26  void mouse(int bn, int state, int x, int y)