File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ struct wpe_gamepad_provider_interface {
183183 * Since: 1.14
184184 */
185185struct wpe_gamepad_interface {
186- void * (* create )(struct wpe_gamepad * , unsigned );
186+ void * (* create )(struct wpe_gamepad * , struct wpe_gamepad_provider * , unsigned );
187187 void (* destroy )(void * );
188188 const char * (* get_id )(void * );
189189
@@ -296,6 +296,7 @@ void wpe_gamepad_provider_dispatch_gamepad_disconnected(struct wpe_gamepad_provi
296296
297297/**
298298 * wpe_gamepad_create:
299+ * @provider: provider of the gamepad to create.
299300 * @gamepad_id: opaque application's representation of gamepad provider.
300301 *
301302 * Method called by WPEWebKit to create an internal representation of a gamepad device.
@@ -305,7 +306,7 @@ void wpe_gamepad_provider_dispatch_gamepad_disconnected(struct wpe_gamepad_provi
305306 * Since: 1.14
306307 */
307308WPE_EXPORT
308- struct wpe_gamepad * wpe_gamepad_create (unsigned );
309+ struct wpe_gamepad * wpe_gamepad_create (struct wpe_gamepad_provider * , unsigned );
309310
310311/**
311312 * wpe_gamepad_destroy:
Original file line number Diff line number Diff line change @@ -111,14 +111,14 @@ wpe_gamepad_provider_dispatch_gamepad_disconnected(struct wpe_gamepad_provider*
111111}
112112
113113struct wpe_gamepad *
114- wpe_gamepad_create (unsigned gamepad_id )
114+ wpe_gamepad_create (struct wpe_gamepad_provider * provider , unsigned gamepad_id )
115115{
116116 if (!gamepad_interface )
117117 return NULL ;
118118
119119 struct wpe_gamepad * gamepad = wpe_calloc (1 , sizeof (struct wpe_gamepad ));
120120 if (gamepad_interface -> create )
121- gamepad -> backend = gamepad_interface -> create (gamepad , gamepad_id );
121+ gamepad -> backend = gamepad_interface -> create (gamepad , provider , gamepad_id );
122122 return gamepad ;
123123}
124124
You can’t perform that action at this time.
0 commit comments