Fix kbd remap.

This commit is contained in:
sorgelig
2018-01-08 04:26:36 +08:00
parent caf33064d5
commit a0c05a2291

View File

@@ -1639,7 +1639,7 @@ static void input_cb(struct input_event *ev, int dev)
if (!mapping_key) mapping_key = ev->code;
else
{
input[dev].kbdmap[mapping_key] = ev->code;
input[mapping_dev].kbdmap[mapping_key] = ev->code;
mapping_key = 0;
}
}