![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
well for one thing i can only seem to call GXopenInput and GXcloseinput. i can't call GXgetdefaultkeys (probably because the return struct isn't consistent with the gx.h). I couldn't even get as far as animating because I can't even find how to retrieve the hardware handler that the other gapi function calls need from my class (dirived from form) I found only one source of comment that got me going and it wasn't readily obvious (for me) that i had to specify an entry point like so, in order for it to work: [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")] private static extern int GXOpenInput(); but for one of my other invoke to another dll didn't need it: [DllImport("coredll.dll")] private static extern short GetAsyncKeyState(int vkey); It also took me a while to find out these info was retrieved through dumpbin.exe. I'm currently using GDI for my animation. since i am only animating a character that only takes 10% of the screen it so far looks smooth. but i plan to move over to pure gapi paint routines if i do encounter some performance difficulties. could you send me your pinvoke to gapi sample? One little quirk i noticed in the ppc2003 emulator from my dell axim x5 is that none of the 256 possible keyboard values is triggered when someone clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar. It works on my axim but not on the emulator. It's possible i MUST register hotkeys for these to work but I find that rather silly ask i currently managed to use gxopeninput to override the hardware buttons. thanks. Robert Huie "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) phx.gbl... Do you mind sharing the information on the quirks you see? I wrote a P/Invoke GAPI sample that works fine except that I'm seeing some jerkiness - I cannot get a simple flying box to fly smoothly Alex Feinman MVP Windows Media Center "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) phx.gbl... just want to see if anyone else here is interested in such a topic. I have come across little quirks so far that leads me to believe it's not so straightforward. Robert Huie |
#2
| |||
| |||
|
|
For P/Invoke example take a look at http://www.alexfeinman.com/download....c=GAPITest.zip I don't remember if the 4 keys can be intercepted via GAPI, but it's either that or RegisterWindowKey. I'm x-posting this to dotnet.framework group, as this conversation obviouslly belongs there rather than here "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) phx.gbl... well for one thing i can only seem to call GXopenInput and GXcloseinput. i can't call GXgetdefaultkeys (probably because the return struct isn't consistent with the gx.h). I couldn't even get as far as animating because I can't even find how to retrieve the hardware handler that the other gapi function calls need from my class (dirived from form) I found only one source of comment that got me going and it wasn't readily obvious (for me) that i had to specify an entry point like so, in order for it to work: [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")] private static extern int GXOpenInput(); but for one of my other invoke to another dll didn't need it: [DllImport("coredll.dll")] private static extern short GetAsyncKeyState(int vkey); It also took me a while to find out these info was retrieved through dumpbin.exe. I'm currently using GDI for my animation. since i am only animating a character that only takes 10% of the screen it so far looks smooth. but i plan to move over to pure gapi paint routines if i do encounter some performance difficulties. could you send me your pinvoke to gapi sample? One little quirk i noticed in the ppc2003 emulator from my dell axim x5 is that none of the 256 possible keyboard values is triggered when someone clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar. It works on my axim but not on the emulator. It's possible i MUST register hotkeys for these to work but I find that rather silly ask i currently managed to use gxopeninput to override the hardware buttons. thanks. Robert Huie "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) phx.gbl... Do you mind sharing the information on the quirks you see? I wrote a P/Invoke GAPI sample that works fine except that I'm seeing some jerkiness - I cannot get a simple flying box to fly smoothly Alex Feinman MVP Windows Media Center "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) phx.gbl... just want to see if anyone else here is interested in such a topic. I have come across little quirks so far that leads me to believe it's not so straightforward. Robert Huie |
#3
| |||
| |||
|
|
I've got an article coming out on Intel.com on GAPI and .NET CF. One's an intro and one's an optimized batched EVC++ DLL for Compact Framework Apps... -Moe Khosravy Vital Images Inc. www.vitalimages.com "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:ua1CDX1QDHA.2224 (AT) TK2MSFTNGP12 (DOT) phx.gbl... For P/Invoke example take a look at http://www.alexfeinman.com/download....c=GAPITest.zip I don't remember if the 4 keys can be intercepted via GAPI, but it's either that or RegisterWindowKey. I'm x-posting this to dotnet.framework group, as this conversation obviouslly belongs there rather than here "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) phx.gbl... well for one thing i can only seem to call GXopenInput and GXcloseinput. i can't call GXgetdefaultkeys (probably because the return struct isn't consistent with the gx.h). I couldn't even get as far as animating because I can't even find how to retrieve the hardware handler that the other gapi function calls need from my class (dirived from form) I found only one source of comment that got me going and it wasn't readily obvious (for me) that i had to specify an entry point like so, in order for it to work: [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")] private static extern int GXOpenInput(); but for one of my other invoke to another dll didn't need it: [DllImport("coredll.dll")] private static extern short GetAsyncKeyState(int vkey); It also took me a while to find out these info was retrieved through dumpbin.exe. I'm currently using GDI for my animation. since i am only animating a character that only takes 10% of the screen it so far looks smooth. but i plan to move over to pure gapi paint routines if i do encounter some performance difficulties. could you send me your pinvoke to gapi sample? One little quirk i noticed in the ppc2003 emulator from my dell axim x5 is that none of the 256 possible keyboard values is triggered when someone clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar. It works on my axim but not on the emulator. It's possible i MUST register hotkeys for these to work but I find that rather silly ask i currently managed to use gxopeninput to override the hardware buttons. thanks. Robert Huie "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) phx.gbl... Do you mind sharing the information on the quirks you see? I wrote a P/Invoke GAPI sample that works fine except that I'm seeing some jerkiness - I cannot get a simple flying box to fly smoothly Alex Feinman MVP Windows Media Center "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) phx.gbl... just want to see if anyone else here is interested in such a topic. I have come across little quirks so far that leads me to believe it's not so straightforward. Robert Huie |
#4
| |||
| |||
|
|
Sorry... Posted too quickly. I'll post the URLs to the embedded gaming articles to be published on Intel's IDS/IDF sites as soon as I know the URLs. -Moe Khosravy "Moe Khosravy" <MKhosravy_NOSPAM (AT) VitalImages (DOT) com> wrote in message news:uR8w8N4QDHA.2276 (AT) TK2MSFTNGP12 (DOT) phx.gbl... I've got an article coming out on Intel.com on GAPI and .NET CF. One's an intro and one's an optimized batched EVC++ DLL for Compact Framework Apps... -Moe Khosravy Vital Images Inc. www.vitalimages.com "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:ua1CDX1QDHA.2224 (AT) TK2MSFTNGP12 (DOT) phx.gbl... For P/Invoke example take a look at http://www.alexfeinman.com/download....c=GAPITest.zip I don't remember if the 4 keys can be intercepted via GAPI, but it's either that or RegisterWindowKey. I'm x-posting this to dotnet.framework group, as this conversation obviouslly belongs there rather than here "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:%238qiwrxQDHA.704 (AT) tk2msftngp13 (DOT) phx.gbl... well for one thing i can only seem to call GXopenInput and GXcloseinput. i can't call GXgetdefaultkeys (probably because the return struct isn't consistent with the gx.h). I couldn't even get as far as animating because I can't even find how to retrieve the hardware handler that the other gapi function calls need from my class (dirived from form) I found only one source of comment that got me going and it wasn't readily obvious (for me) that i had to specify an entry point like so, in order for it to work: [DllImport("gx.dll", EntryPoint="?GXOpenInput@@YAHXZ")] private static extern int GXOpenInput(); but for one of my other invoke to another dll didn't need it: [DllImport("coredll.dll")] private static extern short GetAsyncKeyState(int vkey); It also took me a while to find out these info was retrieved through dumpbin.exe. I'm currently using GDI for my animation. since i am only animating a character that only takes 10% of the screen it so far looks smooth. but i plan to move over to pure gapi paint routines if i do encounter some performance difficulties. could you send me your pinvoke to gapi sample? One little quirk i noticed in the ppc2003 emulator from my dell axim x5 is that none of the 256 possible keyboard values is triggered when someone clicks on the softkey1 through softkey4. i.e. inbox/contacts/calendar. It works on my axim but not on the emulator. It's possible i MUST register hotkeys for these to work but I find that rather silly ask i currently managed to use gxopeninput to override the hardware buttons. thanks. Robert Huie "Alex Feinman [MVP]" <public_news (AT) alexfeinman (DOT) com> wrote in message news:eh8syRrQDHA.2768 (AT) tk2msftngp13 (DOT) phx.gbl... Do you mind sharing the information on the quirks you see? I wrote a P/Invoke GAPI sample that works fine except that I'm seeing some jerkiness - I cannot get a simple flying box to fly smoothly Alex Feinman MVP Windows Media Center "Robert Huie" <gohtor (AT) iswildSPAMMERSHOULDBESHOT (DOT) com> wrote in message news:OWAvPEmQDHA.1040 (AT) TK2MSFTNGP12 (DOT) phx.gbl... just want to see if anyone else here is interested in such a topic. I have come across little quirks so far that leads me to believe it's not so straightforward. Robert Huie |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |