Kodi Community Forum
key press refresh - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: key press refresh (/showthread.php?tid=20428)



- [email protected] - 2006-06-10

after a curtain number of key presses the key refresh rate is greatly increased. i wondered if there would be a way to change in python the key refresh rate stright away.


- solexalex - 2006-06-10

i already succeeded in slow down the repetition, but then, key pressed where kept in memory so when i release a button after a long press, it goes on repeat button...
not sure if i'm really clear...
anyway, my trick is not the good solution... sorry Sad


- [email protected] - 2006-06-11

yea i think i understand what you mean, but i actually want to change the refresh rate not delay the key capture. an alternative to this would be for me to have a way to capture x and y cords of the thumbs, ive tried some ideas but they all returned '0'.


- [email protected] - 2006-06-11

can anyone see why this wouldnt work?

pyobject* window_getleftx(window *self, pyobject *args)
{

return pylong_fromlong((int)ckey().getleftthumbx());
}


- jmarshall - 2006-06-11

ckey() will construct a new ckey object. thus the stick stuff will be set to 0.

you want to grab the default controller m_defaultgamepad and get the stick info from that. see capplication::processgamepad()