Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for other OS #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified cat/KeyTapHand1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/KeyTapHand2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand E.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand F.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand G.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand H.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand I.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand IA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand IB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand IC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/green/Hand ID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand E.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand F.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand G.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand H.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand I.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand IA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cat/mouse/standard/Hand IB.png
Binary file modified cat/mouse/standard/Hand IC.png
Binary file modified cat/mouse/standard/Hand ID.png
Binary file modified cat/tablet/green/Hand A.png
Binary file modified cat/tablet/green/Hand B.png
Binary file modified cat/tablet/green/Hand C.png
Binary file modified cat/tablet/green/Hand D.png
Binary file modified cat/tablet/green/Hand E.png
Binary file modified cat/tablet/green/Hand F.png
Binary file modified cat/tablet/green/Hand G.png
Binary file modified cat/tablet/green/Hand H.png
Binary file modified cat/tablet/green/Hand I.png
Binary file modified cat/tablet/green/Hand IA.png
Binary file modified cat/tablet/green/Hand IB.png
Binary file modified cat/tablet/green/Hand IC.png
Binary file modified cat/tablet/green/Hand ID.png
Binary file modified cat/tablet/standard/Hand A.png
Binary file modified cat/tablet/standard/Hand B.png
Binary file modified cat/tablet/standard/Hand C.png
Binary file modified cat/tablet/standard/Hand D.png
Binary file modified cat/tablet/standard/Hand E.png
Binary file modified cat/tablet/standard/Hand F.png
Binary file modified cat/tablet/standard/Hand G.png
Binary file modified cat/tablet/standard/Hand H.png
Binary file modified cat/tablet/standard/Hand I.png
Binary file modified cat/tablet/standard/Hand IA.png
Binary file modified cat/tablet/standard/Hand IB.png
Binary file modified cat/tablet/standard/Hand IC.png
Binary file modified cat/tablet/standard/Hand ID.png
10 changes: 7 additions & 3 deletions osu!cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import PIL.ImageTk
import PIL.Image
from keyboard import is_pressed
from win32gui import GetCursorPos
from math import sqrt
from time import sleep
from sys import exit
from sys import exit, platform
if platform == 'win32':
from win32gui import GetCursorPos

version = 'v1.2.0'

Expand Down Expand Up @@ -179,7 +180,10 @@ def iterate():

k1_p = is_pressed(k1)
k2_p = is_pressed(k2)
x, y = GetCursorPos()
if platform == 'win32':
x, y = GetCursorPos()
else:
x, y = root.winfo_pointerxy()
f = find_frame(x, y, f)

base_img = cursor_images[f]
Expand Down