Mouse act as joystick

I have an mpu 6050 to make gyro air mouse
but I want to implement a way for the mouse to act like a joystick, if I move to the right the gyro mouse should turn right infinitely until I re-center the mouse on the screen,
Like a wiimote but in this case without ir sensor bar

Example

I have mega r3 2560,mpu 6050 and hc05 as transmisor and atmega32u4 (cjmcu beetle) with another hc05 as receptor

Thanks you really!!!!