So far I understood that the wireless Xbox 360 controller communicates with Bluetooth when I wrote that code ran it on Arduino ,activated my controller and hitting buttons on it I wasn't receiving any thing on the serial monitor.
So I'm not sure if it's because I didn't wire the module right or there is other methods to read bytes off a xbox 360 controller
How I wired the module is:
GND to GND
vcc to vcc
TX from the module to RX of the arduino
and RX from the module to TX of the arduino
void setup() {
Serial.begin(9600);
}
void loop() {
while(Serial.available() == 0);
int val = Serial.read();
Serial.println(val);
}