@@ -16,11 +16,11 @@ pub enum SceCtrlErrorCode {
16
16
/// Enumeration for the digital controller buttons.
17
17
///
18
18
/// Notes :
19
- /// > L1/R1/L3/R3 only can bind using :: sceCtrlPeekBufferPositiveExt2 and :: sceCtrlReadBufferPositiveExt2
19
+ /// > L1/R1/L3/R3 only can bind using [sceCtrlPeekBufferPositiveExt2](crate::ctrl:: sceCtrlPeekBufferPositiveExt2) and [sceCtrlReadBufferPositiveExt2](crate::ctrl:: sceCtrlReadBufferPositiveExt2)
20
20
///
21
21
/// > Values bigger than 0x00010000 can be intercepted only with shell privileges
22
22
///
23
- /// > Vita's L Trigger and R Trigger are mapped to L1 and R1 when using :: sceCtrlPeekBufferPositiveExt2 and :: sceCtrlReadBufferPositiveExt2
23
+ /// > Vita's L Trigger and R Trigger are mapped to L1 and R1 when using [sceCtrlPeekBufferPositiveExt2](crate::ctrl:: sceCtrlPeekBufferPositiveExt2) and [sceCtrlReadBufferPositiveExt2](crate::ctrl:: sceCtrlReadBufferPositiveExt2)
24
24
#[ repr( C ) ]
25
25
pub enum SceCtrlButtons {
26
26
/// Select button.
@@ -102,7 +102,7 @@ pub enum SceCtrlPadInputMode {
102
102
SCE_CTRL_MODE_DIGITAL = 0 ,
103
103
/// Digital buttons + Analog support.
104
104
SCE_CTRL_MODE_ANALOG = 1 ,
105
- /// Same as :: SCE_CTRL_MODE_ANALOG, but with larger range for analog sticks.
105
+ /// Same as [SCE_CTRL_MODE_ANALOG](crate::ctrl::SceCtrlPadInputMode:: SCE_CTRL_MODE_ANALOG) , but with larger range for analog sticks.
106
106
SCE_CTRL_MODE_ANALOG_WIDE = 2 ,
107
107
}
108
108
@@ -111,7 +111,7 @@ pub enum SceCtrlPadInputMode {
111
111
pub struct SceCtrlData {
112
112
/// The current read frame.
113
113
pub timeStamp : u64 ,
114
- /// Bit mask containing zero or more of :: SceCtrlButtons.
114
+ /// Bit mask containing zero or more of [SceCtrlButtons](crate::ctrl:: SceCtrlButtons) .
115
115
pub buttons : u32 ,
116
116
/// Left analogue stick, X axis.
117
117
pub lx : u8 ,
@@ -149,7 +149,7 @@ pub struct SceCtrlData {
149
149
_reserved : [ u8 ; 4 ] ,
150
150
}
151
151
152
- /// Structure to pass as argument to :: sceCtrlSetRapidFire
152
+ /// Structure to pass as argument to [sceCtrlSetRapidFire](crate::ctrl:: sceCtrlSetRapidFire)
153
153
#[ repr( C ) ]
154
154
pub struct SceCtrlRapidFireRule {
155
155
pub Mask : u32 ,
@@ -160,7 +160,7 @@ pub struct SceCtrlRapidFireRule {
160
160
pub Break : u32 ,
161
161
}
162
162
163
- /// Structure to pass as argument to :: sceCtrlSetActuator
163
+ /// Structure to pass as argument to [sceCtrlSetActuator](crate::ctrl:: sceCtrlSetActuator)
164
164
#[ repr( C ) ]
165
165
pub struct SceCtrlActuator {
166
166
/// Vibration strength of the small motor
@@ -171,10 +171,10 @@ pub struct SceCtrlActuator {
171
171
unk : [ u8 ; 6 ] ,
172
172
}
173
173
174
- /// Structure to pass as argument to :: sceCtrlGetControllerPortInfo
174
+ /// Structure to pass as argument to [sceCtrlGetControllerPortInfo](crate::ctrl:: sceCtrlGetControllerPortInfo)
175
175
#[ repr( C ) ]
176
176
pub struct SceCtrlPortInfo {
177
- /// Controller type of each port (See :: SceCtrlExternalInputMode)
177
+ /// Controller type of each port (See [SceCtrlExternalInputMode](crate::ctrl:: SceCtrlExternalInputMode) )
178
178
pub port : [ u8 ; 5 ] ,
179
179
/// Unknown
180
180
unk : [ u8 ; 11 ] ,
@@ -184,7 +184,7 @@ pub struct SceCtrlPortInfo {
184
184
extern "C" {
185
185
/// Set the controller mode.
186
186
///
187
- /// * `mode` - One of :: SceCtrlPadInputMode.
187
+ /// * `mode` - One of [SceCtrlPadInputMode](crate::ctrl:: SceCtrlPadInputMode) .
188
188
///
189
189
/// Returns he previous mode, < 0 on error.
190
190
pub fn sceCtrlSetSamplingMode (
@@ -193,7 +193,7 @@ extern "C" {
193
193
194
194
/// Set the controller extend mode.
195
195
///
196
- /// * `mode` - One of :: SceCtrlPadInputMode.
196
+ /// * `mode` - One of [SceCtrlPadInputMode](crate::ctrl:: SceCtrlPadInputMode) .
197
197
///
198
198
/// Returns the previous mode, < 0 on error.
199
199
pub fn sceCtrlSetSamplingModeExt (
@@ -202,7 +202,7 @@ extern "C" {
202
202
203
203
/// Get the current controller mode.
204
204
///
205
- /// * `pMode` (out) - Return value, see :: SceCtrlPadInputMode.
205
+ /// * `pMode` (out) - Return value, see [SceCtrlPadInputMode](crate::ctrl:: SceCtrlPadInputMode) .
206
206
///
207
207
/// Returns the previous mode, < 0 on error.
208
208
pub fn sceCtrlGetSamplingMode (
@@ -212,7 +212,7 @@ extern "C" {
212
212
/// Get the controller state information (polling, positive logic).
213
213
///
214
214
/// * `port` - use 0.
215
- /// * `*pad_data` (out) - see :: SceCtrlData.
215
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
216
216
/// * `count` - Buffers count. Up to 64 buffers can be requested.
217
217
///
218
218
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -227,7 +227,7 @@ extern "C" {
227
227
/// This function will bind L/R trigger value to L1/R1 instead of LTRIGGER/RTRIGGER
228
228
///
229
229
/// * `port` - use 0.
230
- /// * `*pad_data` (out) - see :: SceCtrlData.
230
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
231
231
/// * `count` - Buffers count. Up to 64 buffers can be requested.
232
232
///
233
233
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -240,7 +240,7 @@ extern "C" {
240
240
/// Get the controller state information (polling, negative logic).
241
241
///
242
242
/// * `port` - use 0.
243
- /// * `*pad_data` (out) - see :: SceCtrlData.
243
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
244
244
/// * `count` - Buffers count. Up to 64 buffers can be requested.
245
245
///
246
246
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -253,7 +253,7 @@ extern "C" {
253
253
/// Get the controller state information (blocking, positive logic).
254
254
///
255
255
/// * `port` - use 0.
256
- /// * `*pad_data` (out) - see :: SceCtrlData.
256
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
257
257
/// * `count` - Buffers count. Up to 64 buffers can be requested.
258
258
///
259
259
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -268,7 +268,7 @@ extern "C" {
268
268
/// This function will bind L/R trigger value to L1/R1 instead of LTRIGGER/RTRIGGER
269
269
///
270
270
/// * `port` - use 0.
271
- /// * `*pad_data` (out) - see :: SceCtrlData.
271
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
272
272
/// * `count` - Buffers count. Up to 64 buffers can be requested.
273
273
///
274
274
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -281,7 +281,7 @@ extern "C" {
281
281
/// Get the controller state information (blocking, negative logic).
282
282
///
283
283
/// * `port` - use 0.
284
- /// * `*pad_data` (out) - see :: SceCtrlData.
284
+ /// * `*pad_data` (out) - see [SceCtrlData](crate::ctrl:: SceCtrlData) .
285
285
/// * `count` - Buffers count. Up to 64 buffers can be requested.
286
286
///
287
287
/// Returns buffers count, between 1 and 'count'. < 0 on error.
@@ -295,7 +295,7 @@ extern "C" {
295
295
///
296
296
/// * `port` - use 0.
297
297
/// * `idx` - rule index between 0-15
298
- /// * `pRule` - structure :: SceCtrlRapidFireRule.
298
+ /// * `pRule` - structure [SceCtrlRapidFireRule](crate::ctrl:: SceCtrlRapidFireRule) .
299
299
///
300
300
/// Returns 0 on success, < 0 on error.
301
301
pub fn sceCtrlSetRapidFire (
@@ -318,7 +318,7 @@ extern "C" {
318
318
/// Control the actuator (vibrate) on paired controllers.
319
319
///
320
320
/// * `port` - use 1 for the first paired controller, etc.
321
- /// * `state` - see :: SceCtrlActuator
321
+ /// * `state` - see [SceCtrlActuator](crate::ctrl:: SceCtrlActuator)
322
322
///
323
323
/// Returns 0 on success, < 0 on error.
324
324
pub fn sceCtrlSetActuator (
@@ -343,7 +343,7 @@ extern "C" {
343
343
344
344
/// Get controller port information.
345
345
///
346
- /// * `info` (out) - see :: SceCtrlPortInfo
346
+ /// * `info` (out) - see [SceCtrlPortInfo](crate::ctrl:: SceCtrlPortInfo)
347
347
///
348
348
/// Returns 0 on success, < 0 on error.
349
349
pub fn sceCtrlGetControllerPortInfo (
0 commit comments