lokxii / Mac-trackpad-mapper

A utility for Mac that maps finger position on trackpad to cursor location on Scnreen
MIT License
28 stars 3 forks source link

Different area not applying #1

Closed Axilotl17 closed 1 year ago

Axilotl17 commented 1 year ago

I used the default code example for top right corner (and I changed resolution) and It still maps the entire trackpad to the entire screen. settings.h.zip

lokxii commented 1 year ago

Did you recompile and rerun the binary? I have made quite a lot of changes recently and could you please also try the new version?

Axilotl17 commented 1 year ago

Yes, will do when I can.

Axilotl17 commented 1 year ago

Alright, a few things, regarding these files:

Screen Shot 2022-12-06 at 10 29 58 AM

Running the "Trackpad Mapper.app" file appears to do nothing. it just opens the app but doesn't change anything.

Running the "trackpad_mapper" app just crashes and spits out this macos crash log: crash.txt I realize maybe this wasn't meant to be run, but then maybe don't put it here or anywhere? I'm unsure what the point of it is, to be honest.

Finally, running the last file is working perfectly; the mapping function works after rebuilding, and when rebuilding with make util_release install_util_update it is the only file that is updated.

lokxii commented 1 year ago

I should have mentioned in the README that absolutely tracking is turned off by default. You have to click on the icon on status bar, and choose "Start absolute tracking" on the menu appeared. I will add this to README later. Those binary files are not meant to be run directly. I should have hidden them in a bin folder inside build. I haven't looked into your crash log yet. Gonna investigate it later

Axilotl17 commented 1 year ago

I... see a lack of menu when opening the Trackpad Mapper.app file. it appears nothing happens. It asks for accessibility features then nothing.

click on the icon on status bar

what does this mean? what icon? I don't see any useful menu on clicking on the item in the dock. (item launched from Trackpad Mapper.app)

lokxii commented 1 year ago

Not the icon in the dock. The icon on status bar at the top of the screen. Next to those date/time/Wifi/battery icons

I think I should also add some photos and gif on the README later to show the usage

Axilotl17 commented 1 year ago

Ahhh yes I see it! however, you need to build with make release AFTER deleting Trackpad Mapper.app to change how it is mapped. trackpad_mapper_util however gets updated with make release without deleting it. for some reason make release doesn't change the existing Trackpad Mapper.app

Axilotl17 commented 1 year ago

Alright I've added a PR to fix a few small things, but I left out the details about the status bar and such as I suspect you may want to edit them.

Thanks for your help! I will be making a new issue to discuss different things, but I'll mark this as closed.

lokxii commented 1 year ago

The existing Trackpad Mapper.app do you mean the one in build folder or application folder? make release just compiles the app. You have to quit and rerun the app for the changes to apply. Therefore I provided make install_util_update to only update the util binary in the app bundle inside Applications folder, so that you only need to Stop and Start absolute tracking without quitting the app. If you are frequently changing the mapping rule, I would recommend you to put Trackpad Mapper.app inside Applications folder, and run make util_release install_util_update every time you make changes

Axilotl17 commented 1 year ago

I have no Trackpad Mapper.app in the application folder. why do you recommend I move it there?

the one in the build folder must be deleted, then make release must be run again to change the map... unless I'm doing something wrong.

side note, do you have a discord or slack channel or some other method I can communicate quicker with and send you videos of issues or whatnot?

Axilotl17 commented 1 year ago

unless I'm doing something wrong.

I was doing something wrong. maybe it was moving Trackpad Mapper.app to Applications like you suggested that fixed it...