SceTouch: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Module ==
== Module ==


=== Known NIDs ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! Name !! World !! Privilege !! NID
! Version !! World !! Privilege
|-
| 1.69 || SceTouch || Non-secure || Kernel || 0xAAEC6405
|-
|-
| 3.60 || SceTouch || Non-secure || Kernel || 0x7DAC4DEC
| 1.69-3.60 || Non-secure || Kernel
|}
|}


Line 23: Line 20:
| 1.69-3.60 || [[SceTouch#SceTouch|SceTouch]] || Non-secure || User || 0x3E4F4A81
| 1.69-3.60 || [[SceTouch#SceTouch|SceTouch]] || Non-secure || User || 0x3E4F4A81
|}
|}
== Types ==
<source lang="C">
//Touch panel port constants
#define SCE_TOUCH_PORT_FRONT 0
#define SCE_TOUCH_PORT_BACK  1
</source>


== SceTouch ==
== SceTouch ==
Line 164: Line 168:
! Version !! NID
! Version !! NID
|-
|-
| 1.69 || 0xD7889B91
| 1.69-3.60 || 0xD7889B91
|}
|}
Obtain device info for a touch panel.
<source lang="C">
typedef struct SceTouchDeviceInfo { //Size is 0xC bytes
    SceUInt16 vendorID;
    SceUInt16 firmwareRev;
    SceUInt16 configRev;
    SceUInt8 hwVersion;
    SceUInt8 padding[4]; //Hardcoded set to 0.
} SceTouchDeviceInfo;
int sceTouchGetDeviceInfo(SceUInt32 panel, SceTouchDeviceInfo *pInfo);
</source>
=== sceTouchGetSamplingStateExt ===
=== sceTouchGetSamplingStateExt ===
{| class="wikitable"
{| class="wikitable"
Line 203: Line 222:
|}
|}


To add:
only return 0 in touch.skprx
          ksceTouchActivateRegion: 0xC7F0DAA0
 
          ksceTouchDisableTouchForce: 0xCDE79889
<source lang="C">
          ksceTouchEnableIdleTimerCancelSetting: 0xEBF4C86A
int sceTouchSetTouchEmulationDataForDriver(void *a1, void *a2);
          ksceTouchEnableTouchForce: 0xE41B4BF8
</source>
          ksceTouchGetDeviceInfo: 0xFD2E0278
 
          ksceTouchGetPanelInfo: 0x937DB4C0
=== sceTouchUpdateInitForDriver ===
          ksceTouchGetProcessInfo: 0x4DF3A37C
{| class="wikitable"
          ksceTouchGetSamplingState: 0x174D0333
! Version !! NID
          ksceTouchPeek: 0xBAD1960B
|-
          ksceTouchPeekRegion: 0x9B3F7207
| 0.990-3.60 || 0xDDCF5145
          ksceTouchRead: 0x70C8AACE
|}
          ksceTouchReadRegion: 0x9A91F624
 
          ksceTouchRegisterVirtualTouchDriver: 0x03C3AC7C
<source lang="C">int sceTouchUpdateInitForDriver(void);</source>
          ksceTouchSetCtrlpCallback: 0x628D9324
 
          ksceTouchSetRegion: 0x7985B164
=== sceTouchUpdateRestartForDriver ===
          ksceTouchSetRegionAttr: 0x10A998DE
{| class="wikitable"
          ksceTouchSetSamplingState: 0x1247257A
! Version !! NID
|-
| 0.990-3.60 || 0x4E6C4558
|}
 
<source lang="C">int sceTouchUpdateRestartForDriver(int unk);</source>
 
=== sceTouchActivateRegionForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xC7F0DAA0
|}
 
=== sceTouchDisableTouchForceForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xCDE79889
|}
 
=== sceTouchEnableIdleTimerCancelSettingForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xEBF4C86A
|}
 
=== sceTouchEnableTouchForceForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xE41B4BF8
|}
 
=== sceTouchGetDeviceInfoForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xFD2E0278
|}
 
=== sceTouchGetPanelInfoForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x937DB4C0
|}
 
=== sceTouchGetProcessInfoForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x4DF3A37C
|}
 
=== sceTouchGetSamplingStateForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x174D0333
|}
 
=== sceTouchPeekForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0xBAD1960B
|}
 
=== sceTouchPeekRegionForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x9B3F7207
|}
 
=== sceTouchReadForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x70C8AACE
|}
 
=== sceTouchReadRegionForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x9A91F624
|}


=== sceTouchRegisterVirtualTouchDriverForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x03C3AC7C
|}


=== sceTouchSetCtrlpCallbackForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x628D9324
|}
=== sceTouchSetRegionForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x7985B164
|}
=== sceTouchSetRegionAttrForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x10A998DE
|}
=== sceTouchSetSamplingStateForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x1247257A
|}
=== sceTouchTouchDataApplyCurve? ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x845E2115
|}
Applies a mapping curve to touch data (X, Y, force).
=== sceTouchSetEnableFlagForDriver ===
{| class="wikitable"
! Version !! NID
|-
| 3.60 || 0x328E38B0
|}
This is a guessed name.
<source lang="C">int sceTouchSetEnableFlagForDriver(SceUInt32 port, SceBool enable);</source>
[[Category:ARM]]
[[Category:Kernel]]
[[Category:Modules]]
[[Category:Modules]]
[[Category:Kernel]]
[[Category:Library]]

Latest revision as of 21:35, 1 May 2023

Module

Version World Privilege
1.69-3.60 Non-secure Kernel

Libraries

Known NIDs

Version Name World Visibility NID
1.69-3.60 SceTouchForDriver Non-secure Kernel 0xA4A7DAFC
1.69-3.60 SceTouch Non-secure User 0x3E4F4A81

Types

//Touch panel port constants
#define SCE_TOUCH_PORT_FRONT 0
#define SCE_TOUCH_PORT_BACK  1

SceTouch

sceTouchEnableIdleTimerCancelSetting

Version NID
1.69 0x12EAE3A

sceTouchPeekRegion

Version NID
1.69 0x4440622

sceTouchSetRegionAttr

Version NID
1.69 0x8DD4C7C

sceTouchGetPanelInfo

Version NID
1.69 0x10A2CA25

sceTouchSetSamplingStateExt

Version NID
1.69 0x13CDFC43

sceTouchRead

Version NID
1.69 0x169A1D58

sceTouchSetSamplingState

Version NID
1.69 0x1B9C5D14

sceTouchGetSamplingState

Version NID
1.69 0x26531526

sceTouchPeekRegionExt

Version NID
1.69 0x2CF6D7E2

sceTouchClearRegion

Version NID
1.69 0x2D94EAEA

sceTouchDisableTouchForce

Version NID
1.69 0x41194411

sceTouchSetProcessPrivilege

Version NID
1.69 0x609EA489

sceTouchSetRegion

Version NID
1.69 0x6134DFBE

sceTouchReadRegion

Version NID
1.69 0x93B5635B

sceTouchReadRegionExt

Version NID
1.69 0x9F0ACAF9

sceTouchEnableTouchForceExt

Version NID
1.69 0xA3FE877B

sceTouchGetProcessInfo

Version NID
1.69 0xAB364C23

sceTouchEnableTouchForce

Version NID
1.69 0xB18370C2

sceTouchActivateRegion

Version NID
1.69 0xBD59D652

sceTouchGetDeviceInfo

Version NID
1.69-3.60 0xD7889B91

Obtain device info for a touch panel.

typedef struct SceTouchDeviceInfo { //Size is 0xC bytes
    SceUInt16 vendorID;
    SceUInt16 firmwareRev;
    SceUInt16 configRev;
    SceUInt8 hwVersion;
    SceUInt8 padding[4]; //Hardcoded set to 0.
} SceTouchDeviceInfo;

int sceTouchGetDeviceInfo(SceUInt32 panel, SceTouchDeviceInfo *pInfo);

sceTouchGetSamplingStateExt

Version NID
1.69 0xDC8671EA

sceTouchDisableTouchForceExt

Version NID
1.69 0xED25DFDC

sceTouchGetPixelDensity

Version NID
1.69 0xF0704CF3

sceTouchPeek

Version NID
1.69 0xFF082DF0

SceTouchForDriver

sceTouchSetTouchEmulationDataForDriver

Version NID
3.60 0xA32529B8

only return 0 in touch.skprx

int sceTouchSetTouchEmulationDataForDriver(void *a1, void *a2);

sceTouchUpdateInitForDriver

Version NID
0.990-3.60 0xDDCF5145
int sceTouchUpdateInitForDriver(void);

sceTouchUpdateRestartForDriver

Version NID
0.990-3.60 0x4E6C4558
int sceTouchUpdateRestartForDriver(int unk);

sceTouchActivateRegionForDriver

Version NID
3.60 0xC7F0DAA0

sceTouchDisableTouchForceForDriver

Version NID
3.60 0xCDE79889

sceTouchEnableIdleTimerCancelSettingForDriver

Version NID
3.60 0xEBF4C86A

sceTouchEnableTouchForceForDriver

Version NID
3.60 0xE41B4BF8

sceTouchGetDeviceInfoForDriver

Version NID
3.60 0xFD2E0278

sceTouchGetPanelInfoForDriver

Version NID
3.60 0x937DB4C0

sceTouchGetProcessInfoForDriver

Version NID
3.60 0x4DF3A37C

sceTouchGetSamplingStateForDriver

Version NID
3.60 0x174D0333

sceTouchPeekForDriver

Version NID
3.60 0xBAD1960B

sceTouchPeekRegionForDriver

Version NID
3.60 0x9B3F7207

sceTouchReadForDriver

Version NID
3.60 0x70C8AACE

sceTouchReadRegionForDriver

Version NID
3.60 0x9A91F624

sceTouchRegisterVirtualTouchDriverForDriver

Version NID
3.60 0x03C3AC7C

sceTouchSetCtrlpCallbackForDriver

Version NID
3.60 0x628D9324

sceTouchSetRegionForDriver

Version NID
3.60 0x7985B164

sceTouchSetRegionAttrForDriver

Version NID
3.60 0x10A998DE

sceTouchSetSamplingStateForDriver

Version NID
3.60 0x1247257A

sceTouchTouchDataApplyCurve?

Version NID
3.60 0x845E2115

Applies a mapping curve to touch data (X, Y, force).

sceTouchSetEnableFlagForDriver

Version NID
3.60 0x328E38B0

This is a guessed name.

int sceTouchSetEnableFlagForDriver(SceUInt32 port, SceBool enable);