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

If custom cursor is defined in config.lua, it still doesn't allign with the resolution #155

Closed
darkhog opened this issue May 29, 2017 · 7 comments
Assignees
Labels
enhancement Improvement of existing feature or adding something new
Milestone

Comments

@darkhog
Copy link

darkhog commented May 29, 2017

Originally I was about to do an issue about having to use system cursor, but then I've found this and set it myself: #116

Problem is that when custom cursor is set, it doesn't align to screen pixels: http://i.imgur.com/TNemrmr.png - see, the custom cursor is between two pixels (a thing physically impossible in a real machine. What I'd like to see is cursor aligning perfectly to screen grid, just like one in Pico-8, if a custom one is defined. I prefer custom cursor as it increases immersion, but things like it not being aligned to screen breaks it again.

@nesbox
Copy link
Owner

nesbox commented May 30, 2017

ok, will add pixel-perfect flag to the config

@nesbox nesbox self-assigned this May 30, 2017
@nesbox nesbox added the enhancement Improvement of existing feature or adding something new label May 30, 2017
@nesbox nesbox added this to the 0.26.0 milestone May 30, 2017
@HomineLudens
Copy link
Collaborator

Not strictly related, but what about adding a way to move the mouse cursor also? something like mouse(x,y,?p)

@nesbox
Copy link
Owner

nesbox commented May 30, 2017

@effer I can, SDL has SDL_WarpMouseInWindow function, but why do you need it? provide example pls :)

@HomineLudens
Copy link
Collaborator

@nesbox

  • Snapping to GUI element
  • Move cursor to OK Button in Dialog (some old software do that (DOS era))
  • In game tutorial

I believe everything could also be done by hiding cursor and moving a sprite. It just come in my mind reading the topic, so I trow it here to hear some opinion.

@nesbox
Copy link
Owner

nesbox commented May 30, 2017

added PIXEL_PERFECT field to the config

THEME =
{
...
	CURSOR = 
	{
		SPRITE = "0000000000000000000000000000000000000000000000000000000000000000",
		PIXEL_PERFECT = true,
	},
...

done in .26

PS. let's discuss do we really need to move mouse cursor from api?

@nesbox nesbox closed this as completed May 30, 2017
@HomineLudens
Copy link
Collaborator

Probably not. I can see only very few real cases.

@darkhog
Copy link
Author

darkhog commented May 30, 2017

It may be useful if someone decides to make 3D game in TIC (they did these for Pico which has far less power) for centering cursor. That might need mixed input though (either kb+mouse or gamepad+mouse).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing feature or adding something new
Projects
None yet
Development

No branches or pull requests

3 participants