Search found 171 matches
- Sat Aug 10, 2013 7:36 pm
- Forum: Programming Discussion
- Topic: How making VMU incremental position detection
- Replies: 2
- Views: 359
How making VMU incremental position detection
Hi everybody. I have made some routs to detect VMU. I use the traditional way where X seems to be the pad position requested (0, 1, 2, 3) : device = maple_enum_type( [b]X[/b], MAPLE_FUNC_CONTROLLER); As i dig documentation, i found that Dreamcast has 4 * 2 VMU slots : a1,a2,b1,b2,c1,c2,d1,d2. I want...
- Sat Aug 10, 2013 2:39 pm
- Forum: Programming Discussion
- Topic: Dreamcast (and Saturn) development under linux
- Replies: 13
- Views: 1434
Re: Dreamcast (and Saturn) development under linux
I know very few little things about that but : I think you must install a tool chain for each architecture profile (in windows or linux) , then fill two different profiles for Saturn and Dreamcast and edit config things for each profile to give compiler and linker correct path. When you create a new...
- Sat Aug 10, 2013 2:25 pm
- Forum: Programming Discussion
- Topic: About Z and D buttons, triggers and analog
- Replies: 3
- Views: 321
Re: About Z and D buttons, triggers and analog
***********-128 ***********| ***********| ***********| -128 --------------0------------128 ***********| ***********| ***********| ***********128 If i understand its seems to be like that. I have tested with code to use analog. It works fine for horizontal and vertical movement but does nothing with...
- Fri Aug 09, 2013 1:40 pm
- Forum: Programming Discussion
- Topic: About Z and D buttons, triggers and analog
- Replies: 3
- Views: 321
About Z and D buttons, triggers and analog
I have a couple of questions about controller management with KOS. 1) I read the online documentation found here : http://cadcdev.sourceforge.net/docs/kos-current/group__controller__buttons.html I noticed two button codes #define CONT_Z (1<<8) #define CONT_D (1<<11) When i look at a regular DC contr...
- Fri Aug 09, 2013 1:20 pm
- Forum: Programming Discussion
- Topic: Detecting pad by specified location.
- Replies: 2
- Views: 366
Re: Detecting pad by specified location.
Thanks a lot !
- Fri Aug 09, 2013 5:36 am
- Forum: Programming Discussion
- Topic: Detecting pad by specified location.
- Replies: 2
- Views: 366
Detecting pad by specified location.
I have seen that there is a maple function to get the Nth device of the requested type. maple_device_t* maple_enum_type (int n, uint32 func ) I would like to have the same information but with a specific port, for example port A and not the first found port. Is it possible ? Thanks in advance.
- Mon Jul 29, 2013 1:39 pm
- Forum: Programming Discussion
- Topic: TIMER MILLISECONDS KOS
- Replies: 3
- Views: 456
Re: TIMER MILLISECONDS KOS
It works ! This is how i done it. #include <kos.h> #include <math.h> #include <arch/timer.h> int frequency_of_primes (int n) { int i,j; int freq=n-1; for (i=2; i<=n; ++i) for (j=fsqrt(i);j>1;--j) if (i%j==0) {--freq; break;} return freq; } int main(int argc, char* argv[]) { uint64 start = timer_ms_g...
- Sun Jul 28, 2013 1:35 pm
- Forum: Programming Discussion
- Topic: TIMER MILLISECONDS KOS
- Replies: 3
- Views: 456
TIMER MILLISECONDS KOS
I want to use timer in c++ so i get an interesting tutorial here : http://www.cplusplus.com/reference/ctime/clock/?kw=clock I started making it on KOS : /* clock example: frequency of primes */ #include <stdio.h> /* printf */ #include <time.h> /* clock_t, clock, CLOCKS_PER_SEC */ #include <math.h> /...
- Sun Jul 28, 2013 1:28 pm
- Forum: Programming Discussion
- Topic: KOS GCC COMPILE AND LINKING COMMAND LINE
- Replies: 4
- Views: 429
Re: KOS GCC COMPILE AND LINKING COMMAND LINE
OK that's close the thread. Thanks.
- Sat Jul 27, 2013 10:20 pm
- Forum: Programming Discussion
- Topic: KOS GCC COMPILE AND LINKING COMMAND LINE
- Replies: 4
- Views: 429
Re: KOS GCC COMPILE AND LINKING COMMAND LINE
Ok.
But if i have to add my own compilator settings or .a lib file or .h include file using this make initialized system in KOS, where could i add the path to use them ?
I have the default configuration that produce the installation wizard of DCDEV R4.
Thanks.
But if i have to add my own compilator settings or .a lib file or .h include file using this make initialized system in KOS, where could i add the path to use them ?
I have the default configuration that produce the installation wizard of DCDEV R4.
Thanks.
- Sat Jul 27, 2013 1:28 pm
- Forum: Programming Discussion
- Topic: KOS GCC COMPILE AND LINKING COMMAND LINE
- Replies: 4
- Views: 429
KOS GCC COMPILE AND LINKING COMMAND LINE
I was testing some code in c++ under DCDEVR4 (mingwing / kos). I have to add a lot of include folders of my own. I want to use my own compile and link command line at bash. I do not want to use the command "make", but i do not know where are the include and lib folders to specity in GCC at...