Changes
Development Team/Almanac (view source)
Revision as of 09:38, 24 October 2008
, 09:38, 24 October 2008→How do I detect when one of the game buttons on the laptop have been pressed?
if (keyname == 'KP_Page_Up'):
if (keyname == 'KP_Page_Up'):
self._chat + "\nCircle Pressed!"
self._chat += "\nCircle Pressed!"
self._chat_buffer.set_text(self._chat)
self._chat_buffer.set_text(self._chat)
elif (keyname == 'KP_Page_Down'):
elif (keyname == 'KP_Page_Down'):
self._chat + "\nX Pressed!"
self._chat += "\nX Pressed!"
self._chat_buffer.set_text(self._chat)
self._chat_buffer.set_text(self._chat)
elif (keyname == 'KP_Home'):
elif (keyname == 'KP_Home'):
self._chat + "\nSquare Pressed!"
self._chat += "\nSquare Pressed!"
self._chat_buffer.set_text(self._chat)
self._chat_buffer.set_text(self._chat)
elif (keyname == 'KP_End'):
elif (keyname == 'KP_End'):
self._chat + "\nCheck Pressed!"
self._chat += "\nCheck Pressed!"
self._chat_buffer.set_text(self._chat)
self._chat_buffer.set_text(self._chat)