how change my mouse movement script !.

I Am beginner in scripting and I want change my script to move the object with the left and right mouse movement, not the up down.
the script :

import bge
GameLogic = bge.logic
from Rasterizer import *
    
cont = GameLogic.getCurrentController()
obj = cont.owner
MouseMove = cont.sensors["MouseMove"]
Sensitivity = 0.10
CenterY = getWindowHeight()//2
CenterX = getWindowWidth()//2
if MouseMove.positive:
    bge.render.setMousePosition(int(CenterX), int(CenterY))    
if MouseMove.positive:
    YPosition = MouseMove.position[1]
    xRot = (CenterY - YPosition)*Sensitivity
    obj["move"] -= xRot
    if obj["move"] < -100:
        obj["move"] = -100
    if obj["move"] > 100:
        obj["move"] = 100
    setMousePosition(CenterX,CenterY)
        
cont.activate("move")

Attachments

MouseMove.blend (290 KB)

Replace lines 14 and 15 with this.

XPosition = MouseMove.position[0]
xRot = (XPosition - CenterX)*Sensitivity

thank you @Mobious