summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-02-24 00:22:20 -0600
committerepoch <epoch@hacking.allowed.org>2020-02-24 00:22:20 -0600
commita7756da8effb82b5d8d07b3e285588f4612031b0 (patch)
tree329037ec0d7d121201b8b9350848153f6bb24153
parenta527864a0fd94da58ff36a452e2ca314beea3894 (diff)
downloadhackvr-a7756da8effb82b5d8d07b3e285588f4612031b0.tar.gz
hackvr-a7756da8effb82b5d8d07b3e285588f4612031b0.zip
got rid of the derpy "term" based input mode changing.
-rw-r--r--src/graphics_cs_x11.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/graphics_cs_x11.c b/src/graphics_cs_x11.c
index 84fe387..be008bf 100644
--- a/src/graphics_cs_x11.c
+++ b/src/graphics_cs_x11.c
@@ -120,11 +120,8 @@ void draw_cs_shape(cs_s_t s) {//this is implemented as draw_cs_line... hrm. it c
smouse.x <= maxx &&
smouse.y <= maxy) {
if(gra_global.mousemap[0]==-1) {//if we're inside the bounding box let's make SOMETHING happen.
- gra_global.mousemap[0]=0;
- printf("%s action %s\n",global.user,s.id);
- }
- if(!strncmp(s.id,"term",4)) {//that's a terrible way to do that
- gra_global.input_mode=1;
+ gra_global.mousemap[0]=0;
+ printf("%s action %s\n",global.user,s.id);
}
bb.id=strdup("boundingbox");
bb.len=4;
@@ -540,7 +537,6 @@ int graphics_event_handler(int world_changed) { //should calling draw_screen be
}
//redraw=1;//meh.
if(redraw || world_changed) {
- gra_global.input_mode=0;
draw_screen();//should this be in here? :?
}
return redraw;