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

AttributeError: function 'SDL_SetRelativeMouseMode' not found #2

Closed
alderven opened this issue Dec 10, 2021 · 1 comment
Closed

AttributeError: function 'SDL_SetRelativeMouseMode' not found #2

alderven opened this issue Dec 10, 2021 · 1 comment

Comments

@alderven
Copy link

Error:

Traceback (most recent call last):
  File "D:/PROGRAMMING/temp/pyxel-raycast-master/main.py", line 52, in <module>
    _setup_api("SDL_SetRelativeMouseMode", c_int32, [c_int32])
  File "D:/PROGRAMMING/temp/pyxel-raycast-master/main.py", line 47, in _setup_api
    api = globals()[name] = getattr(_lib, name)
  File "C:\Program Files\Python38\lib\ctypes\__init__.py", line 386, in __getattr__
    func = self.__getitem__(name)
  File "C:\Program Files\Python38\lib\ctypes\__init__.py", line 391, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'SDL_SetRelativeMouseMode' not found

Steps to reproduce:

Run main.py

Environment:

Python: 3.8
Pyxel: 1.4.3
OS: Win 10

@danmacnaughtan
Copy link
Owner

Hey, I suppose the relative mouse motion hack didn't work for the the packaged Windows binaries of the pyxel core. I was about to correct the path, but noticed yet another pyxel version was released that has rewritten the core in Rust. I decided to remove the mouse camera control all together and updated to run with Pyxel 1.5.0. Thanks!

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