Page 1 of 1

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

Posted: Wed Oct 28, 2009 7:36 pm
by valentinfr
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

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

Posted: Wed Oct 28, 2009 9:02 pm
by nicolas
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.

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

Posted: Thu Oct 29, 2009 6:29 pm
by valentinfr
can i have a exemple ?
by
valentin

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

Posted: Thu Oct 29, 2009 9:57 pm
by nicolas
An example of the image, the code, or ?

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

Posted: Fri Oct 30, 2009 4:35 am
by valentinfr
for the code, what i must modify.
by
valentin

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

Posted: Fri Oct 30, 2009 9:02 am
by nicolas
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.

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

Posted: Fri Oct 30, 2009 6:03 pm
by valentinfr
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