bastienleonard / pysfml-cython

A Python 2/3 binding for SFML 2, written with Cython
http://pysfml2-cython.readthedocs.org/
Other
68 stars 8 forks source link

event.unicode problem #14

Closed mthnzbk closed 12 years ago

mthnzbk commented 12 years ago

http://codepad.org/e8Sg2Ocb

While only #2 active - output http://codepad.org/x3PqCXMJ , but only #1 active, not "unicode" in list output. unicode attribute can not be caught. and gives error.

While only #3 active - "A" click output: "a", "Ç" click output: "ç"

Do not you have to catch up in event.KEY_PRESSED unicode attribute?

bastienleonard commented 12 years ago

Only TEXT_ENTERED events have the unicode property. It's done in the same way as in SFML: http://sfml-dev.org/documentation/2.0/structsf_1_1Event_1_1TextEvent.php

mthnzbk commented 12 years ago

OK. Thanks