comparison dwtest.c @ 293:315812516608

Changes to the key press handling, if the character is zero check the virtual key code. The virtual key code parameter will always be valid. Also print the character in hex so it can be seen in the test program.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 25 Mar 2003 23:44:57 +0000
parents 0e6f09149eaa
children 5414d3d582e4
comparison
equal deleted inserted replaced
292:651b70046c6a 293:315812516608
137 { 137 {
138 FILE *fp = fopen("log", "a+"); 138 FILE *fp = fopen("log", "a+");
139 139
140 if(fp) 140 if(fp)
141 { 141 {
142 fprintf(fp,"got keypress %c %d %d\n", ch, vk, state); 142 fprintf(fp,"got keypress %c 0x%x %d %d\n", ch, ch, vk, state);
143 fclose(fp); 143 fclose(fp);
144 } 144 }
145 return 0; 145 return 0;
146 } 146 }
147 147