Home Forums PS2X PlayStation 2 Controller Library Support Forum Recognizing simultaneous key presses PS2X library Reply To: Recognizing simultaneous key presses PS2X library

#3293
Anonymous
Inactive

Hi Bill,

I am trying to use this function for a few dual button combos and trying to get a clean compile.

For instance I want to test for this combination:  PSB_L1  and the PSB_START buttons

These do not seem to work… the first one compiles, the other two do not compile

if(ps2x.ButtonDataByte(PSB_L1 && PSB_START))

if(ps2x.ButtonDataByte(0x0408))

if(ps2x.ButtonDataByte(0408))

 

In the example program it seems like the button names are bring passed through the function call. I was surprised that did not see to work  for me. Did I miss something or am I just doing it wrong ?