|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <stdio.h>#include <tamtypes.h>#include <sifrpc.h>#include <kernel.h>#include <string.h>#include "libmouse.h"
Include dependency graph for libmouse.c:Go to the source code of this file.
Functions | |
| int | PS2MouseInit (void) |
| int | PS2MouseRead (PS2MouseData *data) |
| int | PS2MouseSetReadMode (u32 readMode) |
| u32 | PS2MouseGetReadMode () |
| int | PS2MouseSetThres (u32 thres) |
| u32 | PS2MouseGetThres () |
| int | PS2MouseSetAccel (float accel) |
| float | PS2MouseGetAccel () |
| int | PS2MouseSetBoundary (int minx, int maxx, int miny, int maxy) |
| int | PS2MouseGetBoundary (int *minx, int *maxx, int *miny, int *maxy) |
| int | PS2MouseSetPosition (int x, int y) |
| int | PS2MouseReset () |
| u32 | PS2MouseEnum () |
| u32 | PS2MouseGetVersion () |
| int | PS2MouseSetDblClickTime (u32 msec) |
| u32 | PS2MouseGetDblClickTIme () |
Variables | |
| static SifRpcClientData_t | mouseif |
| static int | mouse_init = 0 |
USB Mouse Driver for PS2
Definition in file libmouse.c.
| u32 PS2MouseEnum | ( | ) |
Definition at line 205 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_ENUM, SifCallRpc(), and UNCACHED_SEG.
| float PS2MouseGetAccel | ( | ) |
Definition at line 140 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_GETACCEL, SifCallRpc(), and UNCACHED_SEG.
| int PS2MouseGetBoundary | ( | int * | minx, |
| int * | maxx, | ||
| int * | miny, | ||
| int * | maxy | ||
| ) |
Definition at line 168 of file libmouse.c.
References buffer, maxx, maxy, minx, miny, mouseif, NULL, PS2MOUSE_GETBOUNDARY, SifCallRpc(), and UNCACHED_SEG.
| u32 PS2MouseGetDblClickTIme | ( | ) |
Definition at line 238 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_GETDBLCLICKTIME, SifCallRpc(), and UNCACHED_SEG.
| u32 PS2MouseGetReadMode | ( | ) |
Gets the current read mode
Definition at line 94 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_GETREADMODE, SifCallRpc(), and UNCACHED_SEG.
| u32 PS2MouseGetThres | ( | ) |
Definition at line 115 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_GETTHRES, SifCallRpc(), and UNCACHED_SEG.
| u32 PS2MouseGetVersion | ( | ) |
Definition at line 216 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_GETVERSION, SifCallRpc(), and UNCACHED_SEG.
| int PS2MouseInit | ( | void | ) |
Initialise the RPC library
Definition at line 41 of file libmouse.c.
References mouse_init, mouseif, nopdelay(), NULL, PS2MOUSE_BIND_RPC_ID, SifRpcClientData_t::server, and SifBindRpc().
| int PS2MouseRead | ( | PS2MouseData * | data | ) |
Reads the current mouse data (depending on read mode)
Definition at line 64 of file libmouse.c.
References buffer, data, mouseif, NULL, PS2MOUSE_READ, SifCallRpc(), and UNCACHED_SEG.
| int PS2MouseReset | ( | ) |
Definition at line 196 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_RESET, and SifCallRpc().
| int PS2MouseSetAccel | ( | float | accel | ) |
Definition at line 125 of file libmouse.c.
References accel, buffer, mouseif, NULL, PS2MOUSE_SETACCEL, and SifCallRpc().
| int PS2MouseSetBoundary | ( | int | minx, |
| int | maxx, | ||
| int | miny, | ||
| int | maxy | ||
| ) |
Definition at line 154 of file libmouse.c.
References buffer, maxx, maxy, minx, miny, mouseif, NULL, PS2MOUSE_SETBOUNDARY, and SifCallRpc().
| int PS2MouseSetDblClickTime | ( | u32 | msec | ) |
Definition at line 227 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_SETDBLCLICKTIME, and SifCallRpc().
| int PS2MouseSetPosition | ( | int | x, |
| int | y | ||
| ) |
Definition at line 184 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_SETPOSITION, SifCallRpc(), x, and y.
| int PS2MouseSetReadMode | ( | u32 | readMode | ) |
Sets the read mode
Definition at line 84 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_SETREADMODE, and SifCallRpc().
| int PS2MouseSetThres | ( | u32 | thres | ) |
Definition at line 105 of file libmouse.c.
References buffer, mouseif, NULL, PS2MOUSE_SETTHRES, SifCallRpc(), and thres.
| u32 accel |
Definition at line 27 of file libmouse.c.
Referenced by PS2MouseSetAccel().
| struct { ... } mbounds bounds |
| union { ... } buffer |
Definition at line 25 of file libmouse.c.
Referenced by PS2MouseEnum(), PS2MouseGetAccel(), PS2MouseGetBoundary(), PS2MouseGetDblClickTIme(), PS2MouseGetReadMode(), PS2MouseGetThres(), PS2MouseGetVersion(), PS2MouseRead(), PS2MouseReset(), PS2MouseSetAccel(), PS2MouseSetBoundary(), PS2MouseSetDblClickTime(), PS2MouseSetPosition(), PS2MouseSetReadMode(), and PS2MouseSetThres().
| u32 data |
Definition at line 36 of file libmouse.c.
Referenced by checkModelVersion(), dma_channel_receive_chain(), dma_channel_receive_normal(), dma_channel_send_chain(), dma_channel_send_chain_ucab(), dma_channel_send_normal(), dma_channel_send_normal_ucab(), InitCB(), libmc_ReadAlignFunction(), main(), padPortOpen(), padRead(), PS2MouseRead(), RMMan_Read(), sbv_patch_enable_lmb(), and sior_rpc_server().
| s32 maxx |
Definition at line 30 of file libmouse.c.
Referenced by PS2MouseGetBoundary(), and PS2MouseSetBoundary().
| s32 maxy |
Definition at line 31 of file libmouse.c.
Referenced by PS2MouseGetBoundary(), and PS2MouseSetBoundary().
| s32 minx |
Definition at line 30 of file libmouse.c.
Referenced by PS2MouseGetBoundary(), and PS2MouseSetBoundary().
| s32 miny |
Definition at line 31 of file libmouse.c.
Referenced by PS2MouseGetBoundary(), and PS2MouseSetBoundary().
| u32 mode |
Definition at line 26 of file libmouse.c.
|
static |
Definition at line 39 of file libmouse.c.
Referenced by PS2MouseInit().
|
static |
Definition at line 23 of file libmouse.c.
Referenced by PS2MouseEnum(), PS2MouseGetAccel(), PS2MouseGetBoundary(), PS2MouseGetDblClickTIme(), PS2MouseGetReadMode(), PS2MouseGetThres(), PS2MouseGetVersion(), PS2MouseInit(), PS2MouseRead(), PS2MouseReset(), PS2MouseSetAccel(), PS2MouseSetBoundary(), PS2MouseSetDblClickTime(), PS2MouseSetPosition(), PS2MouseSetReadMode(), and PS2MouseSetThres().
| struct { ... } pos |
Referenced by InsertAlarm(), main(), PS2CamExtractFrame(), SetAlarmInternal(), and VuxMakeViewMatrix().
| u32 thres |
Definition at line 28 of file libmouse.c.
Referenced by PS2MouseSetThres().
| time_t time |
Definition at line 37 of file libmouse.c.
Referenced by InsertAlarm(), ReleaseAlarm(), SetAlarm(), and SetAlarmInternal().
| s32 x |
Definition at line 34 of file libmouse.c.
Referenced by align(), draw_clear(), draw_convert_xyz(), draw_fontstudio_char(), draw_fontx_char(), draw_fontx_row(), draw_log2(), draw_primitive_xyoffset(), graph_initialize(), graph_make_config(), graph_set_framebuffer(), graph_set_framebuffer_filtered(), graph_set_screen(), GsSetXYOffset1(), GsSetXYOffset2(), hadd(), hfind(), ps2_screenshot(), ps2_screenshot_file(), PS2MouseSetPosition(), remalloc(), scr_putchar(), scr_setXY(), Vu0ScaleMatrixXYZ(), Vu0TransMatrixXYZ(), VuSetGeometryXYOffset(), VuxRotMatrixX(), VuxRotMatrixXYZ(), VuxScaleMatrixXYZ(), and VuxTransMatrixXYZ().
| s32 y |
Definition at line 34 of file libmouse.c.
Referenced by draw_clear(), draw_convert_xyz(), draw_fontstudio_char(), draw_fontx_char(), draw_fontx_row(), draw_primitive_xyoffset(), graph_initialize(), graph_make_config(), graph_set_framebuffer(), graph_set_framebuffer_filtered(), graph_set_screen(), GsSetXYOffset1(), GsSetXYOffset2(), hadd(), hfind(), ps2_screenshot(), ps2_screenshot_file(), PS2MouseSetPosition(), scr_clear(), scr_putchar(), scr_setXY(), Vu0ScaleMatrixXYZ(), Vu0TransMatrixXYZ(), VuSetGeometryXYOffset(), VuxRotMatrixXYZ(), VuxRotMatrixY(), VuxScaleMatrixXYZ(), and VuxTransMatrixXYZ().