|
|
@ -95,3 +95,62 @@ LiquidType = C_EnumerationType("LiquidType",
|
|
|
|
(c_uint,),
|
|
|
|
(c_uint,),
|
|
|
|
{"Water" : 0,
|
|
|
|
{"Water" : 0,
|
|
|
|
"Magma" : 1})
|
|
|
|
"Magma" : 1})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#this list must stay in the same order as the one in dfhack/library/include/dfhack/modules/WindowIO.h!
|
|
|
|
|
|
|
|
_keys = ["ENTER",
|
|
|
|
|
|
|
|
"SPACE",
|
|
|
|
|
|
|
|
"BACK_SPACE",
|
|
|
|
|
|
|
|
"TAB",
|
|
|
|
|
|
|
|
"CAPS_LOCK",
|
|
|
|
|
|
|
|
"LEFT_SHIFT",
|
|
|
|
|
|
|
|
"RIGHT_SHIFT",
|
|
|
|
|
|
|
|
"LEFT_CONTROL",
|
|
|
|
|
|
|
|
"RIGHT_CONTROL",
|
|
|
|
|
|
|
|
"ALT",
|
|
|
|
|
|
|
|
"WAIT",
|
|
|
|
|
|
|
|
"ESCAPE",
|
|
|
|
|
|
|
|
"UP",
|
|
|
|
|
|
|
|
"DOWN",
|
|
|
|
|
|
|
|
"LEFT",
|
|
|
|
|
|
|
|
"RIGHT",
|
|
|
|
|
|
|
|
"F1",
|
|
|
|
|
|
|
|
"F2",
|
|
|
|
|
|
|
|
"F3",
|
|
|
|
|
|
|
|
"F4",
|
|
|
|
|
|
|
|
"F5",
|
|
|
|
|
|
|
|
"F6",
|
|
|
|
|
|
|
|
"F7",
|
|
|
|
|
|
|
|
"F8",
|
|
|
|
|
|
|
|
"F9",
|
|
|
|
|
|
|
|
"F10",
|
|
|
|
|
|
|
|
"F11",
|
|
|
|
|
|
|
|
"F12",
|
|
|
|
|
|
|
|
"PAGE_UP",
|
|
|
|
|
|
|
|
"PAGE_DOWN",
|
|
|
|
|
|
|
|
"INSERT",
|
|
|
|
|
|
|
|
"DFK_DELETE",
|
|
|
|
|
|
|
|
"HOME",
|
|
|
|
|
|
|
|
"END",
|
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