Pair a bluetooth mouse directly with Macbook Air

I have Microsoft Sculpt Ergonomic Mouse, which has a dedicated Bluetooth receiver USB dongle. When I plug it in (on the left-hand side of the laptop), there is some kind of interference and the mouse does not work, it only works when the mouse is on the left-hand side of the laptop.
Is there a way to pair the mouse directly with the built-in Bluetooth in the Macbook Air so I don’t have to use the USB dongle?
It is Macbook Air 13″ 2020, and Microsoft Sculpt Ergonomic Mouse.

camera – How to correct mouse position to world position in xna/monogame

I’m making a small game where the player shoots projectiles by clicking the mouse. Everything worked fine before adding in a camera. Now the position of the new projectiles is always off.

shoot code:

    if (mouseState.LeftButton == ButtonState.Pressed)
            Vector2 mousePos = new Vector2(mx, my);
            Vector2 worldPosition = Vector2.Transform(mousePos, 

            Shoot(new Vector2(mx, my), new Vector2(pos.X + 8 * scale.X, pos.Y + 8 * scale.Y), 

Camera code:

    public class Camera
    Handler handler;

    public Matrix transform { get; private set; }

    public Camera (Handler handler)
        this.handler = handler;

    public void Update (GameTime gameTime)
        foreach (Player p in handler.players)

    public void Follow(Player target)
        var offset = Matrix.CreateTranslation(1200 / 2, 800 / 2, 0);

        var position = transform = Matrix.CreateTranslation(
            -target.pos.X - ((16 * target.scale.X) / 2),
            -target.pos.Y - ((16 * target.scale.Y) / 2),

        transform = position * offset;

Bullet code:

    public class Projectile
    public bool isActive = true;

    Game1 game;
    Handler handler;
    Spritesheet ss;

    public Vector2 pos;
    public Vector2 scale;

    int type;

    public Vector2 vel;
    public Vector2 direction;
    public Vector2 origin;

    long startTime = 0;

    float speed = 14;

    int particleTimer = 0;

    Rectangle Bounds;

    public Projectile(Vector2 pos, Vector2 scale, int type, Game1 game, Handler handler)
        this.pos = pos;
        this.scale = scale;
        this.type = type; = game;
        this.handler = handler; = game.bullet_ss;

        origin = pos;

    public void LoadContent(ContentManager content)


    public void Update(GameTime gameTime)
        pos += direction * speed;


        Bounds = new Rectangle((int)pos.X, (int)pos.Y, (int)(8 * scale.X), (int)(8 * scale.Y));

    public void Draw(SpriteBatch spriteBatch)
        spriteBatch.Draw(ss.frames(type, 0), pos, null, null, null, 0, scale);

    private void Collision()
        if (type == 0)
            foreach (Platform p in handler.platforms)
                if (this.Bounds.Intersects(p.Bounds)) isActive = false;

    private void CreateParticles()
        if (particleTimer > 2)
            for (int i = 0; i < 3; i++)
                Vector2 position = new Vector2(handler.rand.Next(8) * scale.X, handler.rand.Next(8) * 
                Vector2 v = new Vector2(handler.rand.Next(8), handler.rand.Next(8));
                Particle p = new Particle(position + pos, v, new Vector2(4, 4), 0, game, handler);

            particleTimer = 0;

What fixes can I implement so that the projectiles are created in the correct positon?

macos – Mac OS, mouse right click intermittently stops working

I am using Mac OS X 10.15.4, and intermittently my mouse right click starts behaving like a mouse left click; i.e. no matter how I configure my mouse, I cannot get the right click (secondary button) behaviour. It is an Apple USB non-cordless mouse; the Mac came with a cordless mouse but that died.

It usually comes good after unplugging and replugging the mouse from the USB port, a few times.

It is possibly a hardware issue, but if it is, why does right-clicking do anything at all?

Probably the only “uncommon” way I use my Mac is I leave the emacs editor constantly running; emacs is a huge program and I guess there is a chance it is doing something strange.

Is this a known issue? Or does it sound like a hardware issue?

windows 10 – Inconsistent Mouse Scrolls and Mouse Stops Clicking

I have a Logitech Performance MX wireless mouse. Logitech’s Set Point software will do some weird scrolling behavior. Sometimes I will scroll 1 click of the wheel and it scrolls a few lines. Other times, I will scroll 1 click of the wheel and it scrolls many lines. It was very annoying. So, I killed Set Point and the problem went away. I then decided to uninstall Set Point.

Later, Set Point somehow reinstalled. I uninstalled it and rebooted. Now my mouse will work fine but then clicks stop working. I can move the mouse but clicks do not register. I can hit Ctrl+Alt+Delete and then Escape and the mouse clicks work again. I have to do this frequently. I tried rebooting but the problem persists.

It is not the battery since the battery can be fully charged to almost empty and the behavior happens.

The solution can be an answer to either of these questions. How do I resolve Set Point’s problem of inconsistent scrolling? How do I resolve the mouse clicks not registering?

mouse – How would I go about making a 3D aim trainer?

I play a lot of video games that involve aiming with a mouse. I use 3D aim trainers to help improve my aim and also I play them for fun. However I am not satisfied with the aim trainers that are available right now. So, I would like to make my own aim trainer.

I have an idea in mind for an aim trainer that I would like to create, so what should be my next step to make it? Obviously I need to learn to code, but do I need to learn a lot of mathematics like calculus and beyond? What programming language would be good for this? Can anyone point me in the right direction?

Thank you and all responses are greatly appreciated

unity – Collider inside another collider: Move the brain via mouse while being able the click the spheres

enter image description here

The spheres have a sphere collider on them and are clickable via this script:Clickable.cs

public class Clickable : MonoBehaviour

    void Update()

    void ClickDetect()

        RaycastHit hit;
        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);       

        if (Physics.Raycast(ray, out hit))
            Transform t = hit.collider.transform;
            if ( == "Sphere(Clone)")
                if (Input.GetMouseButtonDown(0))
                        hit.collider.gameObject.GetComponent<Light>().color = new Color(1, 0, 0, 0.7f);

                    Debug.Log( + (t.GetSiblingIndex() + 1));

and the brain has a box collider on it and is moved by this script RotateonMouse

void Rotation()
    if (_isRotating)
        // offset
        _mouseOffset = (Input.mousePosition - _mouseReference);

        // apply rotation
        _rotation.y = -(_mouseOffset.x) * _sensitivity;
        _rotation.x = -(_mouseOffset.y) * _sensitivity;

        // rotate
        transform.eulerAngles += _rotation;

        // store mouse
        _mouseReference = Input.mousePosition;

The issue arises when I try to click on the spheres when the box collider on the brain is on.

I end up rotating the brain instead of being able to click the spheres.
Is there a way to be able to click inside the collider while also on the collider to rotate the brain?

PC freezing, mouse constantly disconnecting, constant USB disconnection noise

My friend’s PC has been constantly freezing. When it freezes, his mouse disconnects, but all the other USB ports are still active. Before his PC freezes, there is a constant USB disconnection noise, even if the mouse is not plugged in. When he restarts his PC, his motherboard says that something might be corrupted, and the PC does not always boot up to the login screen. He has tried to switch his mouse and switch the USB port, but nothing is working. What could be the problem, and how can he fix it?

mouse – When I hold Right a Click AND Left Click, it goes back a page

When I click left click and right click at the same time, it goes back a page. It also happens when I spam right click sometimes. It doesn’t matter if the cursor is on the top half or the bottom half of the screen. It doesn’t matter what mouse I use. It’s annoying when I can’t play online shooters.

godot – How to expand the limit of screen mouse access for FPS side rotation

I started coding in Godot and i have a working FPS controller but the problem is that when i move my mouse sideways , it cannot move my sight beyinid that side of my screen , in other words the movement of my charecter is limited by the size of my screen , how to prevent this

Rotation code

func _input(event):
if event is InputEventMouseMotion:
    head.rotate_y(deg2rad(event.relative.x * -mouseSensitivity))
    camera.rotate_x(deg2rad(event.relative.y * -mouseSensitivity))

keyboard – How can I use option (⌥) + mouse wheel to zoom the content in Keynote/Pages/Preview?

So, this is my struggle – lately, I’ve been using Apps such as Keynote / Pages / Preview.

From MS Word, other .pdf browser, I am used to the combination of ⌥ + mouse wheel (option + mouse wheel) to zoom in/out the content. However, default macOS Apps do no support this and it’s been quite unpleasant while I work using external monitor most of the time.

Is there any solution?