Leviatus21 / pspstacklesspython

Automatically exported from code.google.com/p/pspstacklesspython
1 stars 1 forks source link

RFE: access to sceCtrlReadBufferPositive #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like something like

    if pad.buttons:

to replace

    if pad.square or pad.triangle or pad.circle or pad.cross or \
       pad.up or pad.down or pad.left or pad.right or \
       pad.start or pad.select or \
       pad.l or pad.r or:

Just the bitmask from sceCtrlReadBufferPositive would work.

Original issue reported on code.google.com by MagerV...@gmail.com on 3 Jun 2008 at 4:16

GoogleCodeExporter commented 8 years ago
def buttonpressed(pad):
    if pad.square or pad.triangle or pad.circle or pad.cross or \
       pad.up or pad.down or pad.left or pad.right or \
       pad.start or pad.select or \
       pad.l or pad.r:
        return True
    else:
        return False

Original comment by jan.helb...@gmail.com on 17 Sep 2011 at 2:07