Jump to content

[SOLVED] unicode key press function not being called -- calls regular key press function instead


photo

Recommended Posts

Posted

UnigineApp.cpp keyPressUnicodeFunc calls regular key press function.

 

UnigineApp.cpp lines 324, 326:

 

int keyPressFunc(unsigned int key) { if(key_press_func) return key_press_func(key); return 0; }

int keyPressUnicodeFunc(unsigned int key) { if(key_press_func) return key_press_func(key); return 0; }

 

should be key_press_unicode_func(key)

Posted

Of course, make sure to update if(key_press_func) to if(key_press_unicode_func) too. I missed that the first time.

×
×
  • Create New...