input using 4x3 keypad hope you can help me with this. deadline 4 ds is nxt week

ive looked up on the internet for examples of a daytime counter or a time clock with days on it. i find something called a daytime counter that uses an lcd keypad not the normal keypad. and i want to create a function or edit its code to make an input using my 4x3 keypad instead of using buttons to increment or decrement its value on its menus.

This are the codes that i want to change :

i manage to change its button codes to keypad but i can only use it to increment its value not totally input values using keypad.

case ‘2’:
switch (setting) {
case DAYS:

//////////instead of incrementing, i want to input its values ///////////////

days++;
if (days == 32) days = 1;
break;
case HOURS:
hours++;
if (hours == 25) hours = 1;
break;
case MINUTES:
minutes++;
if (minutes == 60) minutes = 1;
break;
case SECONDS:
seconds++;
if (seconds == 60) seconds = 1;
break;
}

If minutes is 60, don't you want to set minutes to zero, not one?
Ditto for seconds.

Please remember to use code tags when posting code.

AWOL thank you for the reply. but there is no 0 in time. after 60 sec is 1.

Noob-me:
AWOL thank you for the reply. but there is no 0 in time. after 60 sec is 1.

ok. Thanks for pointing out my six decade old misunderstanding.

Noob-me:
AWOL thank you for the reply. but there is no 0 in time. after 60 sec is 1.

I have NEVER seen a digital timepiece display 12:60:60, but they all do show 12:00:00 ( I am not trying to show equivalence, just examples).

The side issue is how the hr/min/sec overflow is being tested.
Usually if greater, then set back to zero. AWOL is correct.

But OPs initial question seems to be how to replace touch with keypad?
No idea without

I'm still trying to work out what "4 ds is nxt week" means.

But OPs initial question seems to be how to replace touch with keypad?

Touch what? Yours is the first mention of "touch".

ok, i was taking licence with his mention of LCD...

“that uses an lcd keypad not the normal keypad. and i want to create a function or edit its code to make an input using my 4x3 keypad instead of using buttons”

Either way, I suspect OP’s out of his depth until his skills catch up with his plans.

AWOL:
I'm still trying to work out what "4 ds is nxt week" means.

I'm going with '...for this is next week'. Looks like cellphonese. Maybe poster is from Brooklyn.