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

Touchpad support #101

Open
st4ycool opened this issue Nov 17, 2023 · 7 comments
Open

Touchpad support #101

st4ycool opened this issue Nov 17, 2023 · 7 comments

Comments

@st4ycool
Copy link

It seems that Pooltool doesn't work with touchpad

@ekiefl
Copy link
Owner

ekiefl commented Nov 17, 2023

Can you describe the behavior you're observing? Pooltool works at the level of mouse position, and does not care what hardware was used to move the mouse.

@st4ycool
Copy link
Author

So, simulator doesn't react on any touchpad events. No matter, is it aim mode or no, it doesn't even move screen with 'V' key.

upd:
After few minutes I tried with trackback with trackball ( red dot in the middle of keyboard of ThinkPad), and it works as intended.
I am on Ubuntu 22.04.3

p.s. do you have any plans on sounds?

P.s.p.s. big respect for this truly amazing work!

@ekiefl
Copy link
Owner

ekiefl commented Nov 17, 2023

That is unfortunate :\

I'm not sure how I can help with that. If the touchpad controls the mouse, it should control the game, with a few caveats.

First, since you're on Linux, make sure you run

pip uninstall panda3d -y
pip install --pre --extra-index-url https://archive.panda3d.org/ panda3d

If you can only move just a little in any direction before the cursor goes out of the game screen, you need to run the above step.

Second, any unlikely scenario can occur where the game window is active, and the mouse position is frozen, but lies outside the game window. When this happens, no mouse movement controls control the game. However, this is independent of the mouse hardware. If you try the trackball and the trackpad right after one another, does the trackball work and the trackpad doesn't?

p.s. do you have any plans on sounds?

Yes! Let me know if you want to collaborate on that.

P.s.p.s. big respect for this truly amazing work!

Thank you very much.

p.s. How did you hear about pooltool?

@st4ycool
Copy link
Author

hmm
Installing collected packages: panda3d ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pooltool-billiards 0.2.1 requires panda3d==1.10.13, but you have panda3d 1.11.0.dev3306 which is incompatible.

No, trackpad doesn't work after I play with trackball

How can I collaborate on introducing sounds into this beautiful simlator?

p.s. I asked stupid gpt what billiard games are available in the world and surprise surprise - pooltool was the first one in the list

@ekiefl
Copy link
Owner

ekiefl commented Nov 17, 2023

Installing collected packages: panda3d ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pooltool-billiards 0.2.1 requires panda3d==1.10.13, but you have panda3d 1.11.0.dev3306 which is incompatible.

This is an expected warning, since we are overriding pooltool's panda3d requirement. In the pooltool python env, can you run

python

Then:

print(__import__("panda3d").__version__)

To exit,

exit()

What version is printed out? It should be >1.10.13

You should give it another go and see if your experience feels better.

p.s. I asked stupid gpt what billiard games are available in the world and surprise surprise - pooltool was the first one in the list

Wow, that's cool GPT has pooltool on the radar.

@ekiefl
Copy link
Owner

ekiefl commented Nov 17, 2023

How can I collaborate on introducing sounds into this beautiful simlator?

Are you a sound engineer, or do you have a good mic and access to a pool table? We basically need a collection of sound bytes that get mapped to different events, like ball-ball, stick-ball, and ball-cushion collisions. Some background "bar ambience" would also be good.

@st4ycool
Copy link
Author

No, unfortunately I am no sound engineer.... neither I have the pool table. But maybe for first iteration just sounds from legendary pool games from internet would be enough? Like with your first table that had no 3d )

p.s. But I would be happy to help with coding... maybe!!! If you have some small tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants