DeadKeyMasterTent={0:0
,0xc0:["abcd","efgh"]
}The key ` char code is seems 0xc0, and add 2 items for test
def OnKeyMasterTentDoorOpen(curse,spell):
if spell in DeadKeyMasterTent:DeadKeyMasterTent[0]=spell
elif DeadKeyMaster[0]:return DeadKeyMasterTent[DeadKeyMasterTent[0]][spell-0x30]
return KeyMasterTent[curse][spell-0x30]
KeyMaster(OnKeyMasterTentDoorOpen)
# check the input key is in DeadKey List or not.
# if dead key is already pressed, return string from dead map
When I type dead key and then type char "0" and "1", its output "abcd" and "efgh".
Cool, huh?
Cheers,
Soe Min
0 comments:
Post a Comment