mirror of
https://github.com/IllusionMan1212/vitasdk-odin.git
synced 2026-10-24 02:12:38 +00:00
70 lines
1.8 KiB
Odin
70 lines
1.8 KiB
Odin
package touch
|
|
|
|
import "core:c"
|
|
import sce "../common"
|
|
|
|
foreign import touch "system:SceTouch_stub"
|
|
|
|
@(link_prefix = "sceTouch")
|
|
foreign touch {
|
|
/**
|
|
* Get Touch Panel information
|
|
*
|
|
* @param[in] port Port number.
|
|
* @param[out] pPanelInfo The buffer to get the Touch Panel information.
|
|
*/
|
|
GetPanelInfo :: proc(port: sce.UInt32, pPanelInfo: ^SceTouchPanelInfo) -> c.int ---
|
|
|
|
/**
|
|
* Get touch data (Blocking)
|
|
*
|
|
* @param[in] port Port Number.
|
|
* @param[out] pData Buffer to receive touch data.
|
|
* @param[in] nBufs Number of buffers to receive touch data.
|
|
*
|
|
* @return Buffers count, between 1 and 'nBufs'. <0 on error.
|
|
*/
|
|
Read :: proc(port: sce.UInt32, pData: ^SceTouchData, nBufs: sce.UInt32) -> c.int ---
|
|
|
|
/**
|
|
* Get touch data (Polling)
|
|
*
|
|
* @param[in] port port number.
|
|
* @param[out] pData Buffer to receive touch data.
|
|
* @param[in] nBufs Number of buffers to receive touch data.
|
|
*
|
|
* @return Buffers count, between 1 and 'nBufs'. <0 on error.
|
|
*/
|
|
Peek :: proc(port: sce.UInt32, pData: ^SceTouchData, nBufs: sce.UInt32) -> c.int ---
|
|
|
|
/**
|
|
* Set sampling state of touch panel.
|
|
*
|
|
* @param[in] port Port number.
|
|
* @param[in] state Sampling state.
|
|
*/
|
|
SetSamplingState :: proc(port: sce.UInt32, state: SceTouchSamplingState) -> c.int ---
|
|
|
|
/**
|
|
* Get sampling state of touch panel.
|
|
*
|
|
* @param[in] port Port number.
|
|
* @param[out] pState The buffer to receive sampling state.
|
|
*/
|
|
GetSamplingState :: proc(port: sce.UInt32, pState: ^SceTouchSamplingState) -> c.int ---
|
|
|
|
/**
|
|
* Enable touch force output.
|
|
*
|
|
* @param[in] port Port number.
|
|
*/
|
|
EnableTouchForce :: proc(port: sce.UInt32) -> c.int ---
|
|
|
|
/**
|
|
* Disable touch force output.
|
|
*
|
|
* @param[in] port Port number.
|
|
*/
|
|
DisableTouchForce :: proc(port: sce.UInt32) -> c.int ---
|
|
}
|