You can look at your I2C read examples in the arduino IDE.
With this chip when you use it as an input you need to set the pins high with a write. Then the input will connect the pins to ground or not. You then read back the pins to see which have been shorted out.
This is the only chip I know that works like this, it is most unconventional.