`joystick.hat[2] = True` should read `joystick.hat[2].bypass = True`
joystick.hat[2] = Trueshould readjoystick.hat[2].bypass = True