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

input support #4

Open
farvardin opened this issue Sep 30, 2019 · 6 comments
Open

input support #4

farvardin opened this issue Sep 30, 2019 · 6 comments

Comments

@farvardin
Copy link

hello,

I don't know if it's better to create issues here or on the TIC-80 repository, since the integration, but here is my issue anyway.

I've built myself the baremetaltic80 from https://github.com/msx80/TIC-80/blob/baremetal/build/baremetalpi/README.md

it works, except for inputs I have some issues:

  • The keyboard keys repeats too fast, it was not usable for 2 of my keyboards, while with a third one it was working perfectly! (all were generic usb keyboards). I don't know what I could do to help you track the problem.

  • the mouse cursor is invisible, making it difficult to use. I suppose it's because tic80 is using the system's mouse instead of its own.

@msx80
Copy link
Owner

msx80 commented Oct 1, 2019

Hi there, i've made some improvements that are not yet in the TIC80 repo, you can find it in the pulito branch, following this updated build procedure:

https://github.com/msx80/TIC-80/blob/pulito/build/baremetalpi/README.md

I've switched to software interrupt for USB, not sure if it will fix your issue but since it's a different system, chances are good.
Also there's mouse support with timed cursor disappearance (fade away if you don't move for some time)

@msx80
Copy link
Owner

msx80 commented Oct 16, 2019

@farvardin have you tested the new version perhaps? it's committed in the main TIC-80 repo now. I would love some feedback :)

@farvardin
Copy link
Author

Sorry, I wanted to compile it again but I didn't take the time to look at the build procedure (well, I've had a quick look at it, but that's all). I don't know when I could compile it, but if you provide updated binaries in the "releases" tab, I'll try it for sure!

@farvardin
Copy link
Author

I've looked at the updated version on https://github.com/nesbox/TIC-80/tree/master/build/baremetalpi

I'm on the same system as before, however, I have some problem while running the command
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBAREMETALPI=1 ..

Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND) 
CMake Error at 3rd-party/curl/CMakeLists.txt:48 (project):
  The CMAKE_C_COMPILER:

    arm-none-eabi-gcc

  is not a full path and was not found in the PATH.

but I've already set up the path:

which arm-none-eabi-gcc

returns:
/opt/gcc-arm-none-eabi-8-2018-q4-major/bin/arm-none-eabi-gcc

And I've installed a few dev lib related to pthread such as libzthread-dev libpthread-workqueue-dev

@msx80
Copy link
Owner

msx80 commented Nov 11, 2019

Hi there, i've taken a look, it seems that the recent switch to the Curl library instead of sdl-net broke the build for baremetal. I'll see if i can fix it.

Sorry for late reply :)

@msx80
Copy link
Owner

msx80 commented Nov 11, 2019

i've opened an issue here on Tic80

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