added kernel libraries bindings and cleaned up todos

This commit is contained in:
2024-05-12 16:16:15 +02:00
parent e9824cbd95
commit 8a5e2870f6
68 changed files with 3278 additions and 92 deletions
+13
View File
@@ -4,6 +4,7 @@ import "core:c"
import sce "../common"
foreign import touch "system:SceTouch_stub"
foreign import touchkern "system:SceTouchForDriver_stub"
@(link_prefix = "sceTouch")
foreign touch {
@@ -67,3 +68,15 @@ foreign touch {
*/
DisableTouchForce :: proc(port: sce.UInt32) -> c.int ---
}
foreign touchkern {
/**
* Set touch enable flag
*
* @param[in] port - The port number.
* @param[in] enable - The enable flag.
*
* @return 0 on success. < 0 on error.
*/
ksceTouchSetEnableFlag :: proc(port: sce.UInt32, enable: sce.Bool) -> c.int ---
}
+1 -1
View File
@@ -3,7 +3,7 @@ package touch
import "core:c"
import sce "../common"
SCE_TOUCH_MAX_REPORT :: 8 //!< FIXME 6 on front | 4 on back
SCE_TOUCH_MAX_REPORT :: 8
/** Touch error codes */
SceTouchErrorCode :: enum c.uint {