MV Help changing cursor image based on mouse position.

Hello!

I am working on improving game feel for my project, and have implemented proper mouse movement for my 3D dungeon crawler. Since that is working nicely I thought adding contextual mouse cursors would be the cherry on top to help signal where the movement zones are on screen. I'm trying to set the cursors directly with JS by changing the cursor property within document.body.style, but so far I've had no luck. Other mouse cursor related plugins do a similar thing by setting that property, but I can't quite figure out why my method isn't changing the cursor.

Here is the code I wrote trying to get this working:
JavaScript:
SE_Utils.mouse = {
    cursorPath: `img/system/`,
    updateCursor: function () {
      var cursor = document.body.style.cursor;
      if (TouchInput.y <= SE_Utils.screen.top) {
        cursor = SE_Utils.mouse.cursorPath + 'UpCursor.png, auto'
      }
      else if (TouchInput.y >= SE_Utils.screen.bottom) {
        cursor = SE_Utils.mouse.cursorPath + 'DownCursor.png, auto';
      }
      else if (TouchInput.x <= SE_Utils.screen.left) {
        cursor = SE_Utils.mouse.cursorPath + 'LeftCursor.png, auto';
      }
      else if (TouchInput.x >= SE_Utils.screen.right) {
        cursor = SE_Utils.mouse.cursorPath + 'RightCursor.png, auto';
      } else {
        cursor = SE_Utils.mouse.cursorPath + 'default.png, auto';
      }
    }
}


Here is a screenshot of what im trying to achieve:
Desktop Screenshot 2024.06.09 - 18.17.15.64.png


Any help would be appreciated! Thanks in advance!

EDIT:
Turns out I was missing some things in my original script. Specifically I was missing the 'url()' wrapper around my image paths. I also had to hard type the path instead of concatenating the image names to a variable since URL is already within a string. Its working semi as intended now, but thats more on my implementation lol

Original thread: https://forums.rpgmakerweb.com/threads/help-changing-cursor-image-based-on-mouse-position.169395/