本文整理匯總了Java中itdelatrisu.opsu.ui.UI.globalMouseWheelMoved方法的典型用法代碼示例。如果您正苦於以下問題:Java UI.globalMouseWheelMoved方法的具體用法?Java UI.globalMouseWheelMoved怎麽用?Java UI.globalMouseWheelMoved使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類itdelatrisu.opsu.ui.UI
的用法示例。
在下文中一共展示了UI.globalMouseWheelMoved方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int delta) {
if (UI.globalMouseWheelMoved(delta, true)) {
consumeEvent();
return;
}
int mouseX = input.getMouseX(), mouseY = input.getMouseY();
if (!active)
return;
if (!contains(mouseX, mouseY)) {
if (consumeAndClose) {
consumeEvent();
listener.close();
}
return;
}
if (!isAdjustingSlider)
scrolling.scrollOffset(-delta);
updateHoverOption(prevMouseX, prevMouseY);
consumeEvent();
}
示例2: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int delta) {
if (UI.globalMouseWheelMoved(delta, true)) {
consumeEvent();
return;
}
int mouseX = input.getMouseX(), mouseY = input.getMouseY();
if (!active)
return;
if (!contains(mouseX, mouseY)) {
if (consumeAndClose) {
consumeEvent();
listener.close(false);
}
return;
}
consumeEvent();
scrolling.scrollOffset(-delta);
}
示例3: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int newValue) {
// change volume
if (UI.globalMouseWheelMoved(newValue, true))
return;
// block input
if (isInputBlocked())
return;
int shift = (newValue < 0) ? 1 : -1;
int mouseX = input.getMouseX(), mouseY = input.getMouseY();
// score buttons
if (focusScores != null && focusScores.length >= MAX_SCORE_BUTTONS && ScoreData.areaContains(mouseX, mouseY))
startScorePos.scrollOffset(ScoreData.getButtonOffset() * shift);
// song buttons
else
changeIndex(shift);
}
示例4: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int newValue) {
if (Options.isMouseWheelDisabled())
return;
UI.globalMouseWheelMoved(newValue, false);
}
示例5: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int newValue) {
if (UI.globalMouseWheelMoved(newValue, true))
return;
// block input during beatmap importing
if (importThread != null)
return;
int shift = (newValue < 0) ? 1 : -1;
int mouseX = input.getMouseX(), mouseY = input.getMouseY();
scrollLists(mouseX, mouseY, shift);
}
示例6: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int newValue) {
UI.globalMouseWheelMoved(newValue, true);
}
示例7: mouseWheelMoved
import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void mouseWheelMoved(int newValue) {
UI.globalMouseWheelMoved(newValue, false);
}