#email@example.com logs for 4 Feb 2014 (GMT)Archive Today Yesterday Tomorrow
[00:27:30] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310])
[08:18:01] --> DominusExult has joined #nuvie
[08:21:05] <-- Dominus has left IRC (Ping timeout: 272 seconds)
[08:21:05] --- DominusExult is now known as Dominus
[10:05:39] --> Yuv422 has joined #nuvie
[10:54:09] --- Shozan is now known as SHODAN
[12:22:43] <-- Yuv422 has left IRC (Quit: Yuv422)
[13:09:27] --> TheCycoONE has joined #nuvie
[13:48:31] <-- TheCycoONE has left IRC (Ping timeout: 245 seconds)
[14:10:04] --> TheCycoONE has joined #nuvie
[17:25:40] <-- TheCycoONE has left IRC (Ping timeout: 272 seconds)
[17:46:21] <-- wjp has left IRC (Read error: Operation timed out)
[17:47:22] <-- SugarCube has left IRC (Read error: Operation timed out)
[17:49:03] --> wjp has joined #nuvie
[18:04:07] --> SugarCube has joined #nuvie
[18:23:40] --> TheCycoONE has joined #nuvie
[19:42:27] --> Yuv422 has joined #nuvie
[19:51:58] --> Malignant_Manor has joined #nuvie
[19:53:24] <Malignant_Manor> Hi Eric
[19:53:44] <Malignant_Manor> I dread having to document this. http://pastebin.com/gvquMvaA
[20:06:20] <Yuv422> Hi Malignant_Manor
[20:06:46] <Yuv422> hehe
[20:06:52] <Yuv422> that's a bit of config
[20:07:15] <Malignant_Manor> It's the only way to do it well.
[20:07:49] <Yuv422> yeah the config elements look good
[20:08:16] <Malignant_Manor> At first I was thinking about having just one delay and deadzone
[20:09:08] <Malignant_Manor> but axes can be many different types of things like throttles and shoulder buttons.
[20:09:33] <Malignant_Manor> You also might have one axis messed up badly.
[20:10:02] <Yuv422> hehe can you imagine playing nuvie with a throttle control? ;-)
[20:10:25] <Yuv422> Avatar running speed to full.
[20:10:29] <Malignant_Manor> I did but only for scrolling up and down the msgscroll.
[20:10:42] <Yuv422> :)
[20:11:03] <Malignant_Manor> Throttle works like every other axis and only reports movement.
[20:11:27] <Malignant_Manor> or maybe not. I had my delay high
[20:13:35] <Malignant_Manor> Yeah, it only reports movement
[20:14:06] <Malignant_Manor> But if you map that axis to the first pair, the player will keep walking in that direction at full speed.
[20:16:38] <Malignant_Manor> I want to know why axis is int in SDL instead of uint8.
[20:16:54] <TheCycoONE> it can be negative
[20:16:57] <TheCycoONE> ?
[20:17:34] <Malignant_Manor> int is only postive isn't it?
[20:18:03] <TheCycoONE> no
[20:18:06] <Malignant_Manor> sint8 would be enough axes
[20:19:23] <TheCycoONE> SDL_JoystickGetAxis is sint16 (negative left, positive right, same for up/down)
[20:19:47] <TheCycoONE> an, and the axis parameter is an int, that's what you're talking about
[20:19:48] <TheCycoONE> meh
[20:19:50] <wjp> int should be the default choice for an integer type
[20:20:30] <Malignant_Manor> I guess if you aren't holding it in memory it is fine.
[20:20:57] <Malignant_Manor> You can always use lower values
[20:21:08] <Malignant_Manor> anyway when int is the value
[20:21:20] <TheCycoONE> the axis id maybe could have been some sort of unsigned char type (uint8), but whatever
[20:24:00] <TheCycoONE> maybe it mapped to one of the operating systems best this way
[20:24:20] <wjp> 21:19 < wjp> int should be the default choice for an integer type
[20:24:28] <wjp> you're overthinking this
[20:24:42] <Malignant_Manor> int is the best for speed
[20:24:47] <Malignant_Manor> so that is default
[20:25:20] <TheCycoONE> int is the best for speed now?
[20:25:33] <Malignant_Manor> I thought it was was
[20:25:45] <Malignant_Manor> Ask wjp
[20:26:26] <Malignant_Manor> I'm horrible at technical stuff.
[20:26:27] <TheCycoONE> well a long is defined as one word, which would fit in a single register, but anything smaller than that should end up the same speed unless you start playing with padding
[20:27:22] <TheCycoONE> i.e. the compiler would leave a bunch of space between each small so that they lined up with words for fast access
[20:27:36] <wjp> that's not how a long is defined
[20:27:49] <wjp> case in point, windows and linux have different longs on the same hardware
[20:28:26] <TheCycoONE> but a pointer is always a long
[20:28:53] <TheCycoONE> windows and linux are different? I thought 32bit long was different than 64bit long but the same on windows and linux
[20:29:31] <wjp> no, pointers isn't a lon
[20:29:32] <wjp> g
[20:30:03] <wjp> 64 bit windows has 32 bit longs
[20:30:20] <TheCycoONE> I see
[20:30:28] <TheCycoONE> sorry for spreading misinformation then
[20:30:34] * TheCycoONE hides in a hole
[20:31:35] <wjp> there's (sadly) very little you can assume about integer types in C
[20:32:06] <TheCycoONE> stick to inttypes.h types?
[20:32:51] <TheCycoONE> stdint.h types
[20:33:54] <TheCycoONE> but that tells you nothing about architecture
[20:34:00] <wjp> if you have stronger requirements than the default types
[20:34:51] <TheCycoONE> wjp: any good type for the equivalent of what I thought a long was?
[20:35:12] <wjp> pointer length? intptr_t
[20:37:22] <TheCycoONE> ah, and I see int_fast8_t etc. if you like speed over any sanity in sizing.
[20:38:13] <wjp> hm, I wonder how those are defined in practice on common current platforms
[20:39:34] <TheCycoONE> easy enough to test on any platform you have
[20:42:58] <TheCycoONE> on cygwin64 with gcc they seem to be 8byte and 1byte respectively.
[20:59:12] <-- Yuv422 has left IRC (Quit: Yuv422)
[21:17:06] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310])
[22:18:45] <-- TheCycoONE has left IRC (Quit: And then there were n-1)
[23:24:19] --> Malignant_Manor has joined #nuvie
[23:51:31] <Malignant_Manor> Build the tools section in configure.ac seems to have the message backwards but I cannot test it.
[23:53:27] <Malignant_Manor> Dominus: Can you please check that and my new HAVE_JOYSTICK_SUPPORT option?
[23:56:06] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310])