[Bf-committers] keyboard mapping, was interactive python console

Campbell Barton cbarton at metavr.com
Sat Mar 26 00:34:26 CET 2005


Hi, Mabe Ill continue this on the python mailing list.
We need a way to recieve higher level key inputs- Python coders 
shouldent have to muck around with kb mappings.
A solution could be to use the text input, but that would remove the 
ability to do things like Auto-compleate. command history etc.
Also the user would have to click on the text box each time. :p could 
simulate pressing enter but still this smells of messiness to me
- Cam



GSR - FR wrote:

>Hi,
>cbarton at metavr.com (2005-03-25 at 0615.33 +1100):
>  
>
>>		elif (evt == Draw.TWOKEY and val and shift): insCh('@')
>>		elif (evt == Draw.TWOKEY and val and not shift): insCh('2')
>>    
>>
>
>Ouch!
>
>  
>
>>		elif (evt == Draw.THREEKEY and val and shift): insCh('#')
>>		elif (evt == Draw.THREEKEY and val and not shift): insCh('3')         
>>    
>>
>
>Ouch again!
>
>[...]
>
>And a handful of ouchs later... is there no way to make it portable?
>Cos that mapping assumes an exact kind of keyboard. Blender seems to
>have managed to solve some of the issues it had in this aspect, and
>this script adds back a lot. In path fields, I can get what (all?) key
>caps have printed, but with the script I get have a different keyboard
>map.
>
>GSR
> 
>_______________________________________________
>Bf-committers mailing list
>Bf-committers at projects.blender.org
>http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>  
>


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20050326/a9573ba5/attachment.html


More information about the Bf-committers mailing list