OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:gamepad_data
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/ppapi/examples/gamepad/
gamepad.cc
92
PP_GamepadsSampleData
gamepad_data
;
93
gamepad_->Sample(pp_instance(), &
gamepad_data
);
local
95
if (
gamepad_data
.length > 1 &&
gamepad_data
.items[0].connected) {
99
for (size_t i = 0; i <
gamepad_data
.items[0].axes_length; i += 2) {
101
gamepad_data
.items[0].axes[i + 0] * width2 + width2);
103
gamepad_data
.items[0].axes[i + 1] * height2 + height2);
108
for (size_t i = 0; i <
gamepad_data
.items[0].buttons_length; ++i) {
109
float button_val =
gamepad_data
.items[0].buttons[i];
/external/chromium_org/native_client_sdk/src/examples/api/gamepad/
gamepad.cc
133
PP_GamepadsSampleData
gamepad_data
;
local
134
gamepad_->Sample(pp_instance(), &
gamepad_data
);
local
137
for (size_t p = 0; p <
gamepad_data
.length; ++p) {
138
int width2 = width() /
gamepad_data
.length / 2;
141
PP_GamepadSampleData& pad =
gamepad_data
.items[p];
Completed in 1660 milliseconds