[PATCH evemu 05/10] make-event-names: make the type-to-map mapping string-compatible

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 4 21:01:47 PDT 2014


One less indirection, map["EV_KEY"] returns the right map now

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/make-event-names.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/make-event-names.py b/src/make-event-names.py
index 320b5ec..5fef9a6 100755
--- a/src/make-event-names.py
+++ b/src/make-event-names.py
@@ -84,6 +84,7 @@ def print_python_map(bits):
 		if name == "REP" or name == "PWR"  or name == "FF_STATUS"  or name == "MAX":
 			continue
 		print("	%d : %s_map," % (val, name.lower()))
+		print("	\"EV_%s\" : %s_map," % (name, name.lower()))
 
 	print("}")
 	print("")
-- 
1.9.3



More information about the Input-tools mailing list