Giter Club home page Giter Club logo

abs's People

Contributors

sciboy12 avatar

Watchers

 avatar  avatar

abs's Issues

processor load reduction

warp_pointer(x,y) uses many times with the same variable values. This causes a very high load on the processor. (50% for pentium n4200)
since i can't program, i couldn't write anything better
https://pastebin.com/RbaxGGRQ
values from the previous result of the cycle are checked and compared with the new values
now the load does not increase above 26%
This is much better, but still very heavy.

X updated only after changing Y

my touchpad has very low sensitivity, x/y_min=0 x_max=900 y_max=500

horizontal motion does not update X if Y does not change
it creates jerks in smooth motion
x y
X upd

example https://www.youtube.com/watch?v=0jy88U66qjA
fixed https://www.youtube.com/watch?v=HuElUsLU9WM

Abs/Abs.py

Lines 89 to 109 in 26ad6bc

try:
for event in read_loop():
#Check for ABS_X events
if event.type == EV_ABS and bytype[event.type][event.code] == 'ABS_X':
# Map the Touchpad X limits to the screen resolution
interp_x = int(interp(event.value,[touchpad_x_min,touchpad_x_max],[0,display_resolution_x]))
#Check for ABS_Y events
if event.type == EV_ABS and bytype[event.type][event.code] == 'ABS_Y':
# Map the Touchpad Y limits to the screen resolution
interp_y = int(interp(event.value,[touchpad_y_min_scaled,touchpad_y_max_scaled],[0,display_resolution_y]))
# Set the cursor position
warp_pointer(interp_x,interp_y)
# Sync the changes
sync()

replaced by
https://pastebin.com/8FmYrvbW

pls fix it is very important and annoying
sorry my english
thx

automatic touchpad detection and limit min and max values

Test version is ready, I think. can you see?
Finally(I'm not sure), no need to correct the values in the config! \O/
https://pastebin.com/tePGMaDg
abs.py

it took longer than i expected
I could not deal with the groups so far.
I do not notice any lag in my "low cpu" version, and with enabled buttons too. what's wrong with my touchpad? I can't test the regular version due to high load
Sorry my english.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.