-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
509 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# vitastick | ||
|
||
vitastick is a plugin and an application that lets you use a PSVita as a USB controller. | ||
It uses the UDCD (USB Device Controller Driver) infrastructure in the kernel to simulate such controller, and thus, the host thinks the PSVita is a legit USB gamepad. | ||
|
||
**Download**: https://github.com/xerpi/vitastick/releases | ||
|
||
**Features:** | ||
* When the VPK is activated, it reduces the clock frequencies to reduce power consumption | ||
|
||
**Installation:** | ||
|
||
1. Add vitastick.skprx to taiHEN's config (ux0:/tai/config.txt): | ||
``` | ||
*KERNEL | ||
ux0:tai/vitastick.skprx | ||
``` | ||
2. Install vitastick.vpk | ||
|
||
**Usage:** | ||
|
||
1. Open the VPK and the Vita should switch to USB controller mode | ||
|
||
**Note**: If you use Mai, don't put the plugin inside ux0:/plugins because Mai will load all stuff you put in there... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef VITASTICK_UAPI_H | ||
#define VITASTICK_UAPI_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define VITASTICK_ERROR_DRIVER_NOT_REGISTERED 0x81337000 | ||
#define VITASTICK_ERROR_DRIVER_NOT_ACTIVATED 0x81337001 | ||
#define VITASTICK_ERROR_DRIVER_ALREADY_ACTIVATED 0x81337002 | ||
|
||
int vitastick_start(void); | ||
int vitastick_stop(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
|
||
#endif |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
set(CMAKE_SYSTEM_NAME "Generic") | ||
set(CMAKE_C_COMPILER "arm-vita-eabi-gcc") | ||
set(CMAKE_CXX_COMPILER "arm-vita-eabi-g++") | ||
|
||
project(vitatsick) | ||
set(TITLE_ID "VITASTICK") | ||
set(TITLE_NAME "Vitastick") | ||
|
||
set(CMAKE_C_FLAGS "-Wl,-q -Wall -O2 -std=gnu99") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -fno-rtti -fno-exceptions") | ||
|
||
include_directories( | ||
${PROJECT_SOURCE_DIR}/../skprx/uapi | ||
) | ||
|
||
link_directories( | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${PROJECT_SOURCE_DIR}/../skprx/build/stubs | ||
) | ||
|
||
if (NOT ${RELEASE}) | ||
add_definitions(-DENABLE_LOGGING) | ||
endif() | ||
|
||
add_executable(${PROJECT_NAME}.elf | ||
main.c | ||
debugScreenFont.c | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME}.elf | ||
SceDisplay_stub | ||
SceCtrl_stub | ||
ScePower_stub | ||
vitastick_stub | ||
) | ||
|
||
add_custom_target(${PROJECT_NAME}.velf ALL | ||
COMMAND vita-elf-create ${PROJECT_NAME}.elf ${PROJECT_NAME}.velf | ||
) | ||
|
||
add_custom_target(eboot.bin ALL | ||
COMMAND vita-make-fself ${PROJECT_NAME}.velf eboot.bin | ||
) | ||
|
||
add_custom_target(${PROJECT_NAME}.vpk ALL | ||
COMMAND vita-mksfoex -s TITLE_ID=${TITLE_ID} "${TITLE_NAME}" param.sfo | ||
COMMAND vita-pack-vpk -s param.sfo -b eboot.bin ${PROJECT_NAME}.vpk | ||
) | ||
|
||
add_custom_target(vpksend | ||
COMMAND curl -T ${PROJECT_NAME}.vpk ftp://$(PSVITAIP):1337/ux0:/ | ||
DEPENDS ${PROJECT_NAME}.vpk | ||
) | ||
|
||
add_custom_target(send | ||
COMMAND curl -T eboot.bin ftp://$(PSVITAIP):1337/ux0:/app/${TITLE_ID}/ | ||
DEPENDS eboot.bin | ||
) | ||
|
||
add_dependencies(${PROJECT_NAME}.velf ${PROJECT_NAME}.elf) | ||
add_dependencies(eboot.bin ${PROJECT_NAME}.velf) | ||
add_dependencies(${PROJECT_NAME}.vpk eboot.bin) |
Oops, something went wrong.