Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamdualsense.h
Go to the documentation of this file.
1/* SIE CONFIDENTIAL
2 * $PSLibId$
3 * Copyright (C) 2019 Sony Interactive Entertainment Inc.
4 * All Rights Reserved.
5 */
6
7
8#ifndef _SCE_PAD_TRIGGER_EFFECT_H
9#define _SCE_PAD_TRIGGER_EFFECT_H
10
11
12#define SCE_PAD_TRIGGER_EFFECT_TRIGGER_MASK_L2 0x01
13#define SCE_PAD_TRIGGER_EFFECT_TRIGGER_MASK_R2 0x02
14
15#define SCE_PAD_TRIGGER_EFFECT_PARAM_INDEX_FOR_L2 0
16#define SCE_PAD_TRIGGER_EFFECT_PARAM_INDEX_FOR_R2 1
17
18#define SCE_PAD_TRIGGER_EFFECT_TRIGGER_NUM 2
19
20/* Definition of control point num */
21#define SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM 10
22
32
41
49 uint8_t position; /*E position where the strength of target trigger start changing(0~9). */
50 uint8_t strength; /*E strength that the motor arm pushes back target trigger(0~8 (0: Same as Off mode)). */
51 uint8_t padding[46];
53
60 uint8_t startPosition; /*E position where the stiffness of trigger start changing(2~7). */
61 uint8_t endPosition; /*E position where the stiffness of trigger finish changing(startPosition+1~8). */
62 uint8_t strength; /*E strength of gun trigger(0~8 (0: Same as Off mode)). */
63 uint8_t padding[45];
65
72 uint8_t position; /*E position where the motor arm start vibrating(0~9). */
73 uint8_t amplitude; /*E vibration amplitude(0~8 (0: Same as Off mode)). */
74 uint8_t frequency; /*E vibration frequency(0~255[Hz] (0: Same as Off mode)). */
75 uint8_t padding[45];
77
85 uint8_t strength[SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM]; /*E strength that the motor arm pushes back target trigger at position(0~8 (0: Same as Off mode)).
86 * strength[0] means strength of motor arm at position0.
87 * strength[1] means strength of motor arm at position1.
88 * ...
89 * */
90 uint8_t padding[38];
92
100
101 uint8_t startPosition; /*E position where the strength of target trigger start changing(0~endPosition). */
102 uint8_t endPosition; /*E position where the strength of target trigger finish changing(startPosition+1~9). */
103 uint8_t startStrength; /*E strength when trigger's position is startPosition(1~8) */
104 uint8_t endStrength; /*E strength when trigger's position is endPosition(1~8) */
105 uint8_t padding[44];
107
115 uint8_t frequency; /*E vibration frequency(0~255 (0: Same as Off mode)) */
116 uint8_t amplitude[SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM]; /*E vibration amplitude at position(0~8 (0: Same as Off mode)).
117 * amplitude[0] means amplitude of vibration at position0.
118 * amplitude[1] means amplitude of vibration at position1.
119 * ...
120 * */
121 uint8_t padding[37];
123
137
147
153
154 uint8_t triggerMask; /*E Set trigger mask to activate trigger effect commands.
155 * SCE_PAD_TRIGGER_EFFECT_TRIGGER_MASK_L2 : 0x01
156 * SCE_PAD_TRIGGER_EFFECT_TRIGGER_MASK_R2 : 0x02
157 * */
158 uint8_t padding[7];
159
160 ScePadTriggerEffectCommand command[SCE_PAD_TRIGGER_EFFECT_TRIGGER_NUM]; /*E command[SCE_PAD_TRIGGER_EFFECT_PARAM_INDEX_FOR_L2] is for L2 trigger setting
161 * and param[SCE_PAD_TRIGGER_EFFECT_PARAM_INDEX_FOR_R2] is for R2 trgger setting.
162 * */
164
165#if defined(__cplusplus) && __cplusplus >= 201103L
166static_assert( sizeof( ScePadTriggerEffectParam ) == 120, "ScePadTriggerEffectParam has incorrect size" );
167#endif
168
169#endif /* _SCE_PAD_TRIGGER_EFFECT_H */
ScePadTriggerEffectMode
@ SCE_PAD_TRIGGER_EFFECT_MODE_VIBRATION
@ SCE_PAD_TRIGGER_EFFECT_MODE_SLOPE_FEEDBACK
@ SCE_PAD_TRIGGER_EFFECT_MODE_FEEDBACK
@ SCE_PAD_TRIGGER_EFFECT_MODE_MULTIPLE_POSITION_FEEDBACK
@ SCE_PAD_TRIGGER_EFFECT_MODE_WEAPON
@ SCE_PAD_TRIGGER_EFFECT_MODE_MULTIPLE_POSITION_VIBRATION
@ SCE_PAD_TRIGGER_EFFECT_MODE_OFF
#define SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM
#define SCE_PAD_TRIGGER_EFFECT_TRIGGER_NUM
parameter for setting the trigger effect.
ScePadTriggerEffectCommandData commandData
ScePadTriggerEffectMode mode
parameter for setting the trigger effect to Feedback mode. Feedback Mode: The motor arm pushes back t...
parameter for setting the trigger effect to ScePadTriggerEffectMultiplePositionFeedbackParam mode....
uint8_t strength[SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM]
parameter for setting the trigger effect to Vibration2 mode. Multi Position Vibration Mode: Vibrates ...
uint8_t amplitude[SCE_PAD_TRIGGER_EFFECT_CONTROL_POINT_NUM]
parameter for setting the trigger effect to off mode. Off Mode: Stop trigger effect.
parameter for the scePadSetTriggerEffect function.
ScePadTriggerEffectCommand command[SCE_PAD_TRIGGER_EFFECT_TRIGGER_NUM]
parameter for setting the trigger effect to Feedback3 mode. Slope Feedback Mode: The motor arm pushes...
parameter for setting the trigger effect to Vibration mode. Vibration Mode: Vibrates motor arm around...
parameter for setting the trigger effect to Weapon mode. Weapon Mode: Emulate weapon like gun trigger...
parameter for setting the trigger effect mode.
ScePadTriggerEffectMultiplePositionVibrationParam multiplePositionVibrationParam
ScePadTriggerEffectWeaponParam weaponParam
ScePadTriggerEffectOffParam offParam
ScePadTriggerEffectFeedbackParam feedbackParam
ScePadTriggerEffectSlopeFeedbackParam slopeFeedbackParam
ScePadTriggerEffectMultiplePositionFeedbackParam multiplePositionFeedbackParam
ScePadTriggerEffectVibrationParam vibrationParam