Search found 1 match
- Tue Oct 19, 2010 17:06
- Forum: Offtopic Discussion
- Topic: Limiting numbers in editbox window
- Replies: 7
- Views: 18240
Re: Limiting numbers in editbox window
in case someone still cares about that, here is the code: static CEGUI::uint _considerNumpadKey(OIS::KeyCode argkey,unsigned int* text=NULL) { switch (argkey) { case OIS::KC_NUMPAD0: if (text) *text=48; return 1; case OIS::KC_NUMPAD1: if (text) *text=49; return 2; case OIS::KC_NUMPAD2: if (text) *te...