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

Alternative controller-style GUI for pocket computers. #861

Closed
Wojbie opened this issue Jul 17, 2021 · 5 comments
Closed

Alternative controller-style GUI for pocket computers. #861

Wojbie opened this issue Jul 17, 2021 · 5 comments
Labels
area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature.
Milestone

Comments

@Wojbie
Copy link
Contributor

Wojbie commented Jul 17, 2021

Pocket Controller GUI

I would like to suggest that if pocket is opened in off-hand then it should not show the pocket GUI. Instead it should just get focus from user and generate key events like in normal open GUI state but keep screen empty. This would allow for using pocket as a wireless controller for CC creations. For example as remote control for turtle or a game-pad for gigantic monitor playing snake. It would basically make pockets into slightly more versatile tools.

Example:

I have bodged together a prototype via some slightly dodgy java use to showcase the idea:

2021-07-17_17-35-45
https://user-images.githubusercontent.com/5893536/126041780-abb84574-232f-4cdf-93ac-c679b9d5e522.mp4
https://user-images.githubusercontent.com/5893536/126042277-6898871d-fae2-476e-846a-b1d6ba8aebfd.mp4

Prototype:

If anyone want to play with it (Or make it proper) code can be found here: https://github.com/Wojbie/CC-Tweaked/tree/PocketControllerPrototype . Simply clone it and use gradlew runClient to play with it.

Plethora keyboard?

Also yes i realize this is similar to keyboards from Plethora but it would be more powerful then plethora keyboard because pocket can run its own internal code and user will still have view of pocket terminal in the off-hand so they can see many kind of user interfaces in there. If one wanted to compare it would be a bit like combination of keyboard, neural interface and overlay at once.

@Wojbie Wojbie added the enhancement An extension of a feature or a new feature. label Jul 17, 2021
@Lupus590
Copy link
Contributor

Personally, I'm not a fan, but it could be a fun config option. The client-side configs do look quite empty with just the monitor rendering stuff there.

@Peekofwar
Copy link

Peekofwar commented Jul 17, 2021

Personally, I'm not a fan, but it could be a fun config option. The client-side configs do look quite empty with just the monitor rendering stuff there.

I agree that it should be optional, but personally I like this idea. The game already renders the pocket computer when you hold it.

Though, I think when enabled, this should also apply when holding the pocket computer with both hands (holding it in your primary hand without anything in your off-hand).

That said, I'm wondering how you could add a visual queue to indicate to the user that they are in fact in the terminal interface... Is it possible to get the hand holding the pocket computer to move slightly to the right (or left when in the other hand); to move slightly towards the center of the screen to indicate you're in its interface?

Sidenote: I would prefer an option to always render the pocket computer as the small-map-view style when in my main hand (with no off-hand item). The large map-style view just seems a little big to me.

@fatboychummy
Copy link
Contributor

Though, I think when enabled, this should also apply when holding the pocket computer with both hands 

Hmm, can you get mouse click events when it's not full screen? If not, it may not be ideal to do it always.

@Wojbie
Copy link
Contributor Author

Wojbie commented Jul 19, 2021

Hmm, can you get mouse click events when it's not full screen? If not, it may not be ideal to do it always.

I have disabled mouse events in prototype cause there is no reliable way to get to match up with image atm. Also i am unsure if that is actually something that would be required or how it should work at all. While i guess it might be nice thing to have it don't feel like necessity to me.

@SquidDev SquidDev added the area-Minecraft This affects CC's Minecraft-specific content. label Jul 23, 2021
@Peekofwar
Copy link

Though, I think when enabled, this should also apply when holding the pocket computer with both hands

Hmm, can you get mouse click events when it's not full screen? If not, it may not be ideal to do it always.

What if you catch the mouse movements, and move a dummy-mouse on the pocket computer screen, then reset the OS mouse position to the center of the screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants