how i do for writing a char with userkey button in bsp?

Post Reply
valentinfr
Posts: 8
Joined: Fri Jul 17, 2009 6:24 am

how i do for writing a char with userkey button in bsp?

Post by valentinfr » Wed Oct 28, 2009 7:36 pm

Hello, i would like to cancel all up, down, right.... buttons for when i push it, it write a charactere :
exemple : i press k1, it write : A
i press k2 button, it write : B
in wordpad.
i think it is in userkey.cpp but i don't know how modify for to doo that.

by
valentin

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how i do for writing a char with userkey button in bsp?

Post by nicolas » Wed Oct 28, 2009 9:02 pm

I havent tried it, but from the code, I think commenting out the code inside of

Code: Select all

DWORD KEY_Init(DWORD dwContext)
and

Code: Select all

BOOL KEY_Deinit(DWORD hDeviceContext)
should do the trick.

valentinfr
Posts: 8
Joined: Fri Jul 17, 2009 6:24 am

Re: how i do for writing a char with userkey button in bsp?

Post by valentinfr » Thu Oct 29, 2009 6:29 pm

can i have a exemple ?
by
valentin

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how i do for writing a char with userkey button in bsp?

Post by nicolas » Thu Oct 29, 2009 9:57 pm

An example of the image, the code, or ?

valentinfr
Posts: 8
Joined: Fri Jul 17, 2009 6:24 am

Re: how i do for writing a char with userkey button in bsp?

Post by valentinfr » Fri Oct 30, 2009 4:35 am

for the code, what i must modify.
by
valentin

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: how i do for writing a char with userkey button in bsp?

Post by nicolas » Fri Oct 30, 2009 9:02 am

Like I said in the previous original reply. Comment out the functions I noted and give it a try.
Im sorry but i dont have the time to recompile a specific version for you to try. I can only give you the information to then follow up on and try it yourself.

The commenting out of the two functions code should remove the interrupt registration and also deinitialization.
By doing so, pressing the buttons wont cause an interrupt and thus you are free to control the buttons from elsewhere.

valentinfr
Posts: 8
Joined: Fri Jul 17, 2009 6:24 am

Re: how i do for writing a char with userkey button in bsp?

Post by valentinfr » Fri Oct 30, 2009 6:03 pm

hello,
whell, first,
what file i must modify for make a new windows ce image?
second, what i must modify for to do what i want?
by
valentin

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests