change mouse sensivity with options menu

i want to create mouse sensitivity menu. i want to create lowest lover normal faster and fastest buttons. but i dont know how can i make that code

nobody can help me?

for Windows

using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
using System;

public class ChangeMouseSpeed : MonoBehaviour {
public const uint SPI_SETMOUSESPEED = 0x0071;
public const uint SPI_GETMOUSESPEED = 0x0070;

[DllImport(“User32.dll”)]
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, uint pvParam, uint fWinIni);

[DllImport(“User32.dll”)]
static extern bool SystemParametersInfo(uint uiAction, uint uiParam, ref uint pvParam, uint fWinIni);

uint currSpeed = 0;

void Update()
{
if (Input.GetKeyUp(KeyCode.A))
{
//set mouse speed to 1
SystemParametersInfo( SPI_SETMOUSESPEED, 0, 1, 0);
}

if (Input.GetKeyUp(KeyCode.B))
{
//set mouse speed to 20
SystemParametersInfo(SPI_SETMOUSESPEED, 0, 20, 0);
}

if (Input.GetKeyUp(KeyCode.C))
{

//get current mouse speed
SystemParametersInfo(SPI_GETMOUSESPEED, 0, ref currSpeed, 0);
print(currSpeed);
}

}
}

it is not working. i put that code but didnt change anything. can someone help me with js.

Not going to get far unless you learn how to code :stuck_out_tongue:

kulmurat2001, it’s C#-script, not JavaScript

i know. i asked if same code by js.