MCPcopy Create free account
hub / github.com/diasurgical/devilution / gmenu_left_right

Function gmenu_left_right

Source/gmenu.cpp:263–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void gmenu_left_right(BOOL isRight)
264{
265 int step;
266
267 if (sgpCurrItem->dwFlags & GMENU_SLIDER) {
268 step = sgpCurrItem->dwFlags & 0xFFF;
269 if (isRight) {
270 if (step == (int)(sgpCurrItem->dwFlags & 0xFFF000) >> 12)
271 return;
272 step++;
273 } else {
274 if (!step)
275 return;
276 step--;
277 }
278 sgpCurrItem->dwFlags &= 0xFFFFF000;
279 sgpCurrItem->dwFlags |= step;
280 sgpCurrItem->fnMenu(FALSE);
281 }
282}
283
284BOOL gmenu_on_mouse_move()
285{

Callers 1

gmenu_presskeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected