Posts: 497
Joined: Aug 2004
Reputation:
0
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.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 497
Joined: Aug 2004
Reputation:
0
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'.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 497
Joined: Aug 2004
Reputation:
0
can anyone see why this wouldnt work?
pyobject* window_getleftx(window *self, pyobject *args)
{
return pylong_fromlong((int)ckey().getleftthumbx());
}
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
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()