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

Override global virtual controller #25

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

d3m3vilurr
Copy link
Contributor

@d3m3vilurr d3m3vilurr commented Jun 11, 2017

  1. ksceCtrlRegisterVirtualControllerDriver overwrite system virtual controller driver,
    but this function cannot release set driver.

  2. if override controller driver, sub_17C107C only use readButtons
    at fetch input data.

it occurs can't read phy buttons of the PSVITA.

these multiple reasons, patch ksceCtrlRegisterVirtualControllerDriver's comparing command to NOP
this injection will allow ksceCtrlRegisterVirtualControllerDriver(NULL)

Still not work sceCtrl(Set|Reset)LightBar.

Reference: https://wiki.henkaku.xyz/vita/SceCtrl#Register_virtual_controller_driver

@d3m3vilurr d3m3vilurr force-pushed the register branch 2 times, most recently from 9e6c8d0 to 9d1c1f4 Compare June 11, 2017 14:35
@d3m3vilurr d3m3vilurr changed the title Override global virtual controller [WIP] Override global virtual controller Jun 11, 2017
@d3m3vilurr
Copy link
Contributor Author

now, patchset requires updating vita-headers.

1. `SceCtrlForDriver_18823EEA` overwrite system virtual controller driver,
  but this function cannot release set driver.

2. if override controller driver, `sub_17C107C` only use readButtons
  at fetch input data.

  it occurs can't read phy buttons of the PSVITA.

these multiple reasons, direct inject and release driver to the global
variable using `taiInjectDataForKernel` and `taiInjectReleaseForKernel`

not yet tested sceCtrlSetLightBar

Reference: https://wiki.henkaku.xyz/vita/SceCtrl#Register_virtual_controller_driver
this patch replace `cbz r0, 0x17c5b3c` to `nop`
@d3m3vilurr d3m3vilurr changed the title [WIP] Override global virtual controller Override global virtual controller Jun 12, 2017
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

Successfully merging this pull request may close these issues.

1 participant