scroll
scroll();
scroll();
if (atkbd->scroll)
if (atkbd->scroll)
if (atkbd->scroll) {
atkbd->scroll = atkbd_scroll;
return sprintf(buf, "%d\n", atkbd->scroll ? 1 : 0);
if (atkbd->scroll != value) {
old_scroll = atkbd->scroll;
atkbd->scroll = value;
atkbd->scroll = old_scroll;
bool scroll;
ATKBD_DEFINE_ATTR(scroll);
int scroll = 0, hscroll = 0, click = -1;
scroll = 1;
scroll = 2;
scroll = 4;
scroll = 8;
module_param_named(scroll, atkbd_scroll, bool, 0);
if (atkbd->scroll) {
atkbd->release ? -scroll : scroll);
MODULE_PARM_DESC(scroll, "Enable scroll-wheel on MS Office and similar keyboards");
if (hw.scroll) {
priv->scroll += hw.scroll;
while (priv->scroll >= 4) {
priv->scroll -= 4;
while (priv->scroll <= -4) {
priv->scroll += 4;
hw->scroll = (s8)buf[1];
s8 scroll;
int scroll;
module_param_named(scroll, ypan, scroll, 0);
MODULE_PARM_DESC(scroll,
int key = 0, button = 0, choice = 0, scroll = 0, max_choice;
scroll = choice - list_height + 1;
choice -= scroll;
item_set(scroll + i);
print_arrows(dialog, choice, item_count(), scroll,
item_set(i + scroll);
if (!scroll)
item_set(scroll);
scroll--;
item_set(scroll);
scroll, box_y, box_x + check_x + 5, list_height);
if (scroll + choice >= item_count() - 1)
item_set(scroll + max_choice - 1);
scroll++;
item_set(scroll + max_choice - 1);
scroll, box_y, box_x + check_x + 5, list_height);
item_set(scroll + choice);
item_set(scroll + choice);
item_set(scroll + choice);
static void print_arrows(WINDOW * win, int choice, int item_no, int scroll,
if (scroll > 0) {
if ((height < item_no) && (scroll + choice < item_no - 1)) {
if ((height < item_no) && (scroll + height < item_no)) {
static void do_scroll(WINDOW *win, int *scroll, int n)
*scroll = *scroll + n;
int key = 0, button = 0, scroll = 0, choice = 0;
scroll = *s_scroll;
if ((scroll <= choice) && (scroll + max_choice > choice) &&
(scroll >= 0) && (scroll + max_choice <= item_count())) {
first_item = scroll;
choice = choice - scroll;
scroll = 0;
scroll = first_item = item_count() - max_choice;
scroll = first_item = choice - max_choice / 2;
choice = choice - scroll;
print_arrows(dialog, item_count(), scroll,
item_set(scroll + i);
item_set(scroll + i);
print_item(scroll + choice, choice, FALSE);
if (choice < 2 && scroll) {
do_scroll(menu, &scroll, -1);
print_item(scroll, 0, FALSE);
print_item(scroll+choice, choice, FALSE);
(scroll + max_choice < item_count())) {
do_scroll(menu, &scroll, 1);
print_item(scroll+max_choice - 1,
if (scroll > 0) {
do_scroll(menu, &scroll, -1);
print_item(scroll, 0, FALSE);
if (scroll + max_choice < item_count()) {
do_scroll(menu, &scroll, 1);
print_item(scroll+max_choice-1,
print_item(scroll + choice, choice, TRUE);
print_arrows(dialog, item_count(), scroll,
*s_scroll = scroll;
item_set(scroll + choice);
static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x,
if (scroll > 0) {