-
Notifications
You must be signed in to change notification settings - Fork 60
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
Controller Mapping - Part 1 #39
Conversation
You are my hero buddy <3 |
…troller-mapping to reduce possible conflicts in the future
how can I test it? |
@amirsaam Before you build playcover, in carthage config file, set playtools revision as this branch. Then when you build playcover, it will be built with this branch's playtools. |
@XuYicong sorry I'm not familiar with
in |
@amirsaam I don't mean a |
oh, my bad. didn't pay attention to that. I figured it out with your help. there are couple of problems:
Screen.Recording.1401-07-14.at.09.58.40.mp4
Screen.Recording.1401-07-14.at.10.04.17.mp4NOTE: In the video I didn't changed the D-PAD keys from WASD to D keys, but I actually did that but didn't record it. for the records my controller is MFI type Backbone One |
For LSB and RSB mapping, there are two modes. They can be mapped to a mouse area or a joystick. In your case, you should map it to a joystick, rather than mouse area. Mouse area is designed for camera control. For mouse movement mapping, yes, it becomes keybind once mouse moved. It is currently so designed. Do you have a better idea how should that work?
D-PAD keys are expected to work as individual keys, but they may currently have bugs. But they are not expected to be mapped to WASD control. You can instead map a LSB or RSB to that. |
I see, I should create a WASD (Directional Move) then map it to LSB. But will RSB work as camera while it is keybinded to Directional Move? Because mapping it to mouse area will result to that issue
It could be better to have it's own designated create option like there is a mouse area option already there, why not just limit mouse to that? Right now releasing this like that would create a lot of UX issues
I was just testing D-PAD, while you use a controller you would never want D-PAD as move control. Btw looks like you didn't implemented R3 (RS) or L3 (LS) buttons (pressing down L&R sticks), am I right? |
Yes. I was expecting they could work automatically but it seems they don't. I don't have device to test them so I nearly forgot their existence.
LSB and RSB are treated equivalently. Either LSB or RSB can be mapped to Directional Move then should work as Directional Move.
Good idea. I remember Isaac was making a new editor UI? If he has not given up yet, I think it's better to leave this to his new editor UI. |
I didn't get this right, so if I map RSB as camera control, what is expected behaviour?
Yeah I tried to mention his work and tell that exactly but looks like he didn't create a PR yet. |
RSB then works as camera control. More specifically, when RSB works as camera control, whenever RSB is not in center, the touch point is moving towards corresponding direction. When RSB is back to center, the touch point stops moving, and releases (lift off, cease pressing). |
Can I ask when (approximately) it will be ready? |
Sorry I have not got time to continue with this recently. If others want to contribute to this, you are free to take it. I will not have time for this again until the end of November. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works as stated in the pull request's description. GC buttons can be mapped, including the ones from IOkit devices with a GC wrapper. This was tested for GC controllers too, DS4 and Xbox One. Mouse and keyboard maps were verified to work after the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlayCover/PlayCover#515 restores compatibility with PlayTools' keymaps.
Improved icon scaling
您好 我在使用joystick映射时无法直接触发45°方向 |
@MemoryYiJun Hello, I'm not sure what exactly do you mean by "joystick 映射". This PR is about mapping controller(手柄) to touches, but I think you are referring to something related to WASD. If this is the case, re-create the mapping by choosing the approriate mapping type. You can read our docs for detailed guide. If you have more questions you can also join the discord server or QQ群(767242941)for help. |
Addresses #17
This is the part 1 out of 2, to add support of mapping controller buttons & thumbsticks to touchscreen actions.
In this part, PlayMice has been refactored to add support of thumbstick mapping. As this refactor changes a lot of how PlayMice works, it would be better to merge this earlier, so as to avoid potential conflicts later.
What This PR Has Done
What Are Left For Part 2